nyko1650
10/06/2022, 12:30 PMnkshah2
10/06/2022, 12:31 PMnkshah2
10/06/2022, 12:31 PMjscyo
10/06/2022, 12:32 PMnyko1650
10/06/2022, 12:33 PMnyko1650
10/06/2022, 12:33 PMnkshah2
10/06/2022, 12:54 PMnkshah2
10/06/2022, 12:54 PMnyko1650
10/06/2022, 1:19 PMnyko1650
10/06/2022, 1:21 PMnyko1650
10/06/2022, 1:22 PMnkshah2
10/06/2022, 1:28 PMnkshah2
10/06/2022, 1:29 PMnyko1650
10/06/2022, 1:37 PMnkshah2
10/07/2022, 5:30 AMNickReese
03/09/2023, 1:44 PMupdateEmailOrPassword
is called?
Like, is the password just accepted? No token, no nothing? The documentation is a bit sparse.nkshah2
03/10/2023, 5:30 AMupdateEmailOrPassword
does not require a token and yes it does accept the password, but that is only when you call the function directly.
The normal flow would be to call the API to generate a token and send the reset password link to the user and then call the password reset API with the token. If you want to mimic the same behaviour by calling the functions directly instead of calling the APIs exposed by SuperTokens you should call:
- createResetPasswordToken
which will generate ad return a token for the password reset
- resetPasswordUsingToken
which can be used to reset the user's password with the generated token. This function will validate that the token is valid etcnkshah2
03/10/2023, 5:30 AMupdateEmailOrPassword
should be used for internal operations that reset the password and not for user facing operationsNickReese
03/10/2023, 10:25 AMnext
backend.
Reimplementing has been interesting as I've never seen a codebase structured in the way this one is.
While I have you, any way to drop support for async-storage in RN? Would love that it was pluggable to use mmkv (sync instead of async).
So far so good. Got my package working well.NickReese
03/10/2023, 10:27 AMNickReese
03/10/2023, 10:28 AMauth
and it just works.NickReese
03/10/2023, 10:28 AMNickReese
03/10/2023, 10:29 AMnkshah2
03/10/2023, 10:38 AM