setAccessToken()
Use nhost.graphql.setAccessToken to a set an access token to be used in subsequent graphql requests. Note that if you’re signin in users with nhost.auth.signIn() the access token will be set automatically.
nhost.graphql.setAccessToken('some-access-token')Parameters
Section titled “Parameters”accessToken required undefined | string