getAuthDetails
The getAuthDetails
method is used to get the details of the currently authenticated user. This method will also use session storage to get the user's details if they are already authenticated.
Usage
example.ts
import { signer } from "./signer";
const user = await signer.getAuthDetails();
Returns
Promise<User>
-- on success returns a User
object representing the authenticated user.