Hi,
I am running the latest version of the parse-server on my local server. My client is an iOS app.
I create an anonymous user with the following code: PFAnonymousUtils.logInWithBlock
At a certain point in my app, I want to convert this anonymous user to a normal user. I can convert it to a Facebook, Twitter or username/password user.
With FaceBook or Twitter, I use their "linkUser" method and everything works fine.
With the username/password, I do the following:
var user = PFUser.currenUser()
user.username = username?.lowercaseString
user.email = username?.lowercaseString
user.password = password
user.signUpInBackgroundWithBlock { (sucess, error) in
}
When I look at the "Session" table in mongoDB, there is no session created. In fact, the session that was created for the anonymous user was deleted when I tried to transform the anonymous user to a username/password user.
If I log out and log in again, the session is properly created.
Is there a way to link the anonymous user to a username/password user?
Environment Setup
- Server
- parse-server version: 2.2.16
- Operating System: Mac OS X El Capitan
- Hardware: MacBook Pro
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): localhost
- Database
- MongoDB version: 3.2.1
- Storage engine: [FILL THIS OUT]
- Hardware: [FILL THIS OUT]
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): [FILL THIS OUT]
Logs/Trace
You can turn on additional logging by configuring VERBOSE=1 in your environment.
[Error]: invalid session token (Code: 209, Version: 1.13.0)
Hi,
I am running the latest version of the parse-server on my local server. My client is an iOS app.
I create an anonymous user with the following code: PFAnonymousUtils.logInWithBlock
At a certain point in my app, I want to convert this anonymous user to a normal user. I can convert it to a Facebook, Twitter or username/password user.
With FaceBook or Twitter, I use their "linkUser" method and everything works fine.
With the username/password, I do the following:
When I look at the "Session" table in mongoDB, there is no session created. In fact, the session that was created for the anonymous user was deleted when I tried to transform the anonymous user to a username/password user.
If I log out and log in again, the session is properly created.
Is there a way to link the anonymous user to a username/password user?
Environment Setup
Logs/Trace
You can turn on additional logging by configuring VERBOSE=1 in your environment.
[Error]: invalid session token (Code: 209, Version: 1.13.0)