Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

An isomorphic Javascript library for GoTrue.
Latest
method default.prototype.setSession
import { default } from "https://deno.land/x/gotrue@3.0.0/src/GoTrueClient.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; }>