When loading your application, you might want to check if the user already has a session.
To do so, you can use the
getUserSession(options): Promise<User | null>#
signInIfExists(boolean) If set, the user will be automatically signed in if they have a session
Returns null if no session exists, or an object with
token if it does exist.
This API also works for anonymous users