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