Parse-SDK-Flutter icon indicating copy to clipboard operation
Parse-SDK-Flutter copied to clipboard

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

Open valerycolong opened this issue 1 year ago • 1 comments

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.

valerycolong avatar Oct 02 '24 18:10 valerycolong

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!