supertokens / supertokens-android Goto Github PK
View Code? Open in Web Editor NEWAndroid SDK for SuperTokens
License: Other
Android SDK for SuperTokens
License: Other
SuperTokens.withApiDomain(...).withApiBasePath(...).withSessionExipredStatusCode(..).initialise();
We can do this way later. Just making an issue for now
From axios2.test.js
In accordance to this pull request: supertokens/supertokens-website#22
Refer to the discussion here: supertokens/supertokens-website#17
The issue seems to be:
Authorization
header manually, set to the current access tokenThe issue is similar to what was resolved here: https://github.com/supertokens/supertokens-react-native/pull/123/files#diff-08906753e0eb5ab2b91ee375361349ad892b18d17afc2e22fcdd206cd1ecb148
TODOs:
The SDKs logic for adding headers, cookies etc when making network requests and the logic to handle response headers and session expiration needs to be updated
com.supertokens
instead of io.supertokens
getUserId
getAccessTokenPayloadSecurely
attemptRefreshingSession
signOut
doNotDoInterception
PACKAGE_PLATFORM
and VERSION_NAME
preConnectCallback
rid
and set it to anti-csrf
if the user has not done that alreadyhandleUnauthorised
functionif
statement: https://github.com/supertokens/supertokens-android/blob/update-init-logic/app/src/main/java/io/supertokens/session/SuperTokensHttpURLConnection.java#L118if ( preRequestIdRefreshToken == null ) {
String idRefreshToken = IdRefreshToken.getToken(applicationContext);
return idRefreshToken != null;
}
rid: session
and fdi-version
headersCookies between OkHttp3 clients and HttpURLConnection requests are not guaranteed to be shared. As a result when using sessions with OkHttp3/Retrofit SuperTokens.signOut
does not actually clear the session.
This is because the signout function internally uses httpurlconnection.
To solve this problem, it is best that the sign out API is called directly without using a helper function. The SuperTokens.signOut
function should be marked as deprecated
The SDK logic for when SuperTokens.init is called needs to be updated to:
Hello,
I'm using OkHttp3/Retrofit.
About 20 minutes after sign in, doesSessionExist
return false.
Is it the same issue as #33 (comment) ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.