Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gotrue/src/index.ts>GoTrueClient#setSession

An isomorphic Javascript library for GoTrue.
Latest
method GoTrueClient.prototype.setSession
Re-export
import { GoTrueClient } from "https://deno.land/x/gotrue@3.0.0/src/index.ts";

Sets the session data from refresh_token and returns current Session and Error

Parameters

refresh_token: string

a JWT token

Returns

Promise<{ session: Session | null; error: ApiError | null; }>