How to login using flutter sdk?
a
How to login using flutter sdk?
n
Hi, The flutter SDK manages sessions for you, you will need to call the login APIs manually. You can follow the README in the repo to setup the sdk and refer to https://supertokens.com/docs/fdi for a list of APIs exposed
You can follow the backend section of the quick setup docs to get the API layer setup
m
@nkshah2 have we released the flutter SDK? The pub.dev version shows its 2 years old release
@mib200
m
this is superb!!!
also, in flutter SDK, are we still dependant upon cookie domain etc?
n
For now yes, we will be working on supporting sessions via headers really soon
m
but the flutter app won't have any domain/cookies etc. how will it manage the session in that case? My api is hosted at
auth.example.com
n
So you can initialise the sdk with just your api domain
The cookie domain won’t apply if you only want sessions against that one domain
If you need it to be across all subdomains then you can use cookie domain
Also the sdk has built in logic to work around the cookie limitations that http has so it should work fine
Dio has built in support for it anyway
m
ok. I will try and come back to you on this
n
Yep feel free to ask on #644849840475602944 if you need help with anything
10 Views