Package com.surrealdb.signin
Class BearerCredential
java.lang.Object
com.surrealdb.signin.BearerCredential
- All Implemented Interfaces:
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.-
Constructor Summary
ConstructorsConstructorDescriptionBearerCredential(String token) Creates a bearer credential with the given access token. -
Method Summary
-
Constructor Details
-
BearerCredential
Creates a bearer credential with the given access token.- Parameters:
token- the access token (JWT) to use for authentication; must not be null
-
-
Method Details
-
getToken
-