Use nhost.auth.getAccessToken to get the access token of the user.
const accessToken = nhost.auth.getAccessToken()