supertokens library

Flutter implementation of SuperTokens session management. This library is a pure dart implementation and does not use platform channels. Use SuperTokensHttpClient to use SuperTokens with the http package. SuperTokensHttpClient uses SharedPreferences to store cookies across app launches

Classes

SuperTokens
Primary class for the supertokens package Use SuperTokens.initialise to initialise the package, do this before making any network calls
SuperTokensHttpClient
An http.BaseClient implementation for using SuperTokens for your network requests. To make use of supertokens, use this as the client for making network calls instead of http.Client or your own custom clients. If you use a custom client for your network calls pass an instance of it as a paramter when initialising SuperTokensHttpClient, pass http.Client() to use the default.