JavaScript: setAuth | Supabase Docs

JavaScript: setAuth

Updates the authorization header

Parameters

  • token

    (Required)

    the new jwt token sent in the authorisation header

Examples

Setting the authorization header

functions.setAuth(session.access_token)