public class SuperTokens
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SuperTokens.Builder |
Constructor and Description |
---|
SuperTokens() |
Modifier and Type | Method and Description |
---|---|
static boolean |
attemptRefreshingSession(android.content.Context context) |
static boolean |
doesSessionExist(android.content.Context context) |
static java.lang.String |
getAccessToken(android.content.Context context) |
static org.json.JSONObject |
getAccessTokenPayloadSecurely(android.content.Context context) |
static java.lang.String |
getUserId(android.content.Context context) |
static void |
resetForTests() |
static void |
setTokenTransferMethod(java.lang.String tokenTransferMethod) |
static void |
signOut(android.content.Context context) |
@TestOnly public static void resetForTests()
@TestOnly public static void setTokenTransferMethod(java.lang.String tokenTransferMethod)
public static boolean doesSessionExist(android.content.Context context)
public static void signOut(android.content.Context context) throws java.io.IOException, java.lang.IllegalAccessException, SuperTokensGeneralError
java.io.IOException
java.lang.IllegalAccessException
SuperTokensGeneralError
public static boolean attemptRefreshingSession(android.content.Context context) throws java.io.IOException, java.lang.IllegalAccessException
java.io.IOException
java.lang.IllegalAccessException
public static java.lang.String getUserId(android.content.Context context)
public static org.json.JSONObject getAccessTokenPayloadSecurely(android.content.Context context) throws java.io.IOException
java.io.IOException
public static java.lang.String getAccessToken(android.content.Context context)