DEV Community

Discussion on: Using Amplify CLI for adding Auth to your Hasura GraphQL engine

Collapse
vladimirnovick profile image
Vladimir Novick Author

getSession is async function and you missed await keyword calling getSession. Your token is a promise.