Comments (12)
Hi,
As of my previous commit what you described is possible since I now support loggin in and linking with a digits account. So you can create an anonymous account but when you link it with digits it effectively becomes a digits account, so you later on can log back into it.
You can't however try to link another anonymous account to the same digits Id, this behaviour is the same if you try do it with Facebook.
I will update the readme to show the link with digits example
Hope it helps,
from pfuser-digits.
Great, thanks!
from pfuser-digits.
Quick question: with the new parse revocable sessions, it seems to change the session token every time you "set" the password. So if I login to the same digits account on a different phone or iPad, the person who is logged-in on a different device gets their token revoked. Is there any way around this problem?
Thanks again for this great framework.
from pfuser-digits.
So here was the issue when the new Parse Revocable sessions were announced:
Previously each user had its own unique session token and we could fetch that in CloudCode and return to the user so he could log into that token.
With the revocable sessions, every login creates a new Parse.Session
(with its own session token). I remember trying but I didn't find any way to get a new session token from CloudCode, the only solution to getting it was doing a login. But I couldn't do a login without the password, this is why the password is changed before every new login.
This is not the most ideal solution, I should look into and see if in any of the newest Parse updates they have included something that would make this easier.
However I did test this current implementation by logging into two different devices and the previous session was not revoked. If I go to the Parse dashboard I can see two sessions for that same user.
from pfuser-digits.
Interesting—I've tried logging into two different devices and the previous session was revoked. Maybe it's something in our settings. Thanks for looking into it!
from pfuser-digits.
When you say revoked, does the session object disappear from the Parse dashboard?
from pfuser-digits.
It doesn't disappear but in the app I get "invalid session token" errors on all my fetches.
from pfuser-digits.
If you are logged in with a user. Then you update that user's password in the dashboard does that result in the same errors?
from pfuser-digits.
Yeah
from pfuser-digits.
I tested on my app and it doesn't happen. Weird...
These is how my settings are:
from pfuser-digits.
It's probably this!
In General
.
from pfuser-digits.
Awesome find! I will test but should be the fix! Thanks again.
from pfuser-digits.
Related Issues (20)
- Verify the X-Auth-Service-Provider header, by parsing the uri and asserting the domain is api.digits.com, to ensure you are calling Digits. HOT 4
- PFUser never logs out and Can't bring back Digits Signup Flow HOT 6
- PFSession not created (?) upon successful login HOT 8
- Function not found error HOT 2
- Add extra field to signup flow HOT 5
- Permanently Logged-in Users HOT 2
- Parse shutting down - What now HOT 6
- Ambiguous use of 'Subscript' error in Xcode Beta 7.3 HOT 4
- Failure to Login because `Data couldn't be read` HOT 6
- Invalid configuration HOT 8
- Invalid session token after linking an existing PFUser with Digits HOT 2
- Revoke session on password change + Parse Server HOT 4
- Parse Error Code 1 upon loginWithDigitsInBackgroundWithConfiguration HOT 6
- How to configure the Twitter/Digits oAuth on Parse Server HOT 9
- How can i use this for android ??? HOT 5
- Swift 3 HOT 3
- [Digits sharedInstance].session is sometimes nil causing crash HOT 7
- Swift 3 version? :) HOT 1
- Digits is shutting down... HOT 3
- Migration guide for hosted Parse Server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pfuser-digits.