Triggering authentication
You can call the specific login or signup methods you want to support. For example, with passkeys:Checking authentication state
To check if a user is authenticated, callclient.getSession()
and verify the expiry:
Learn how to set up authentication that leverages Turnkey’s Auth Proxy using @turnkey/core in your frontend JavaScript application.
client.getSession()
and verify the expiry: