Use nhost.storage.setAccessToken to a set an access token to be used in subsequent storage requests. Note that if you’re signin in users with nhost.auth.signIn() the access token will be set automatically.

nhost.storage.setAccessToken('some-access-token')

Parameters


accessToken optional string

Access token