Skip to content

Using become() with legacy session tokens #2572

Closed
@all-iver

Description

@all-iver

Our app uses a webview for some tasks. The native mobile app loads the webview, and then passes a session token to the javascript running inside the webview. Javascript then calls become() to perform actions as the same user logged into the native app.

We have not migrated to using revocable session tokens. When I try this with our live app (using legacy parse.com) and our updated web code (using parse-server), I get "invalid session token".

Am I right in assuming the problem is that parse-server's become() does not accept our legacy session tokens?

Please help me to understand what our options are. As I see it, we could:

  1. Wait for parse-server to hopefully start working with legacy tokens soon, or try to implement this functionality ourselves
  2. Migrate our users to revocable sessions ASAP and hope enough upgrade before the cutoff, and then deploy the parse-server version of our webapp
  3. Rewrite our webview code to be native

Any advice would be appreciated! We were thinking we were about ready to migrate but this problem has cropped up during some final testing to make sure users who haven't upgraded yet would be ok to use the parse-server version of our webapp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions