Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support context for Parse.User save, signUp and login methods #1009

Open
2 of 3 tasks
valerycolong opened this issue Oct 2, 2024 · 1 comment
Open
2 of 3 tasks

Support context for Parse.User save, signUp and login methods #1009

valerycolong opened this issue Oct 2, 2024 · 1 comment
Labels
type:feature New feature or improvement of existing feature

Comments

@valerycolong
Copy link

valerycolong commented Oct 2, 2024

New Feature / Enhancement Checklist

Current Limitation

Parse Server SDK Javascript offers support for passing context with the save, login (and perhaps signUp) methods.
This has permitted my team to easily implement custom OTP signing flows with our web apps.
It will be nice if we can do same from our flutter app.

Feature / Enhancement Description

The feature request is simply to allow ParseUser class save, login, and signUp methods to be able to take context object that will be sent to the backend very similar to how the JS SDK does it.

Example Use Case

I want to be able to do the following and have it reflect in the backend for example:

await ParseUser.createUser(
    username, 
    password, 
    email
).login(context: context)

Alternatives / Workarounds

An alternative is to use custom auth provider, however, this approach too comes with a challenge as it does now trigger the afterLogin event after the user successfully logs in.

Copy link

parse-github-assistant bot commented Oct 2, 2024

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza mtrezza changed the title Will be nice to have ParseUser save, signUp and login methods with fully supported context. Support context for ParseUser save, signUp and login methods Oct 3, 2024
@mtrezza mtrezza changed the title Support context for ParseUser save, signUp and login methods Support context for Parse.User save, signUp and login methods Oct 3, 2024
@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

2 participants