Android SDK Installation
Add the SuperTokens package dependency
implementation 'io.supertokens:session:1.2.+'
Add this to your app level build.gradle
.
This package uses AndroidX artifacts and will break your build if your app does not use them.
Additional packages
For SuperTokens to work correctly you need to use cookies in your application:
- When using
HttpURLConnection
the library provides a persistent cookie store that you can use. - If you use
OkHttp
orRetrofit
the library relies on you to set a cookie jar when creating an instance of theOkHttpClient
. An example of a library that provides persistent cookie jar is:implementation 'com.github.franmontiel:PersistentCookieJar:+'