Class BearerCredential

java.lang.Object
com.surrealdb.signin.BearerCredential
All Implemented Interfaces:
Credential

public class BearerCredential extends Object implements Credential
Credential that authenticates the session with an existing access token (e.g. JWT). Use with Surreal.signin(Credential) to set the session to this token without performing a new sign-in request.