Giter Club home page Giter Club logo

Comments (12)

felix-dumit avatar felix-dumit commented on August 28, 2024

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.

mlchild avatar mlchild commented on August 28, 2024

Great, thanks!

from pfuser-digits.

mlchild avatar mlchild commented on August 28, 2024

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.

felix-dumit avatar felix-dumit commented on August 28, 2024

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.

mlchild avatar mlchild commented on August 28, 2024

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.

felix-dumit avatar felix-dumit commented on August 28, 2024

When you say revoked, does the session object disappear from the Parse dashboard?

from pfuser-digits.

mlchild avatar mlchild commented on August 28, 2024

It doesn't disappear but in the app I get "invalid session token" errors on all my fetches.

from pfuser-digits.

felix-dumit avatar felix-dumit commented on August 28, 2024

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.

mlchild avatar mlchild commented on August 28, 2024

Yeah

from pfuser-digits.

felix-dumit avatar felix-dumit commented on August 28, 2024

I tested on my app and it doesn't happen. Weird...
These is how my settings are:

screen shot 2015-10-16 at 4 34 30 pm

from pfuser-digits.

felix-dumit avatar felix-dumit commented on August 28, 2024

It's probably this!

In General.

screen shot 2015-10-16 at 4 36 18 pm

from pfuser-digits.

mlchild avatar mlchild commented on August 28, 2024

Awesome find! I will test but should be the fix! Thanks again.

from pfuser-digits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.