Skip to main content
The getAuth() function can be used to retrieve the current authentication state of the user from the server.

Returns

Returns an object containing the following fields:
session
KobbleServerAuthSession | null
The current session object, or null if the user is not authenticated.KobbleServerAuthSession is defined as follows:
User is defined as follows:

Examples