ITEnthusiasm
10/21/2022, 5:27 PM{ status: RESET_PASSWORD_INVALID_TOKEN_ERROR }
. If the developer is keeping track of these kinds of error strings as "enums", he/she can respond to this pretty easily by observing data.status
.
However, if the user requests a password reset without a token, the returned error object is different and instead looks like: { message: 'Please provide the password reset token' }
.
This discrepancy makes it a bit difficult for developers to have a unified approach to responding to errors. (For instance, I usually do if/then
checks on data.status
to know how to go about returning error messages to the frontend in a response.)
Is there any chance that missing token error objects could also be given an error status
property? Maybe RESET_PASSWORD_MISSING_TOKEN_ERROR
? Or, I guess technically it could have the same status as with an invalid token... since tokens aren't allowed to be undefined. 🤔hinogi
10/26/2022, 8:56 PMrp
10/27/2022, 5:06 AMITEnthusiasm
12/30/2022, 7:31 PMgetInfoFromAccessToken
are "try refresh token" errors. The error handling should probably be more accurate. Right now, debugging is a bit of a pain.rp
12/31/2022, 5:27 AMITEnthusiasm
12/31/2022, 2:38 PMITEnthusiasm
12/31/2022, 2:38 PMrp
12/31/2022, 2:41 PMrp
01/20/2023, 3:47 AMrp
01/20/2023, 3:47 AMITEnthusiasm
01/20/2023, 1:02 PMITEnthusiasm
01/21/2023, 1:49 PMsupertokens-node
and supertokens-web
?rp
01/21/2023, 3:10 PMDarkPhoenix
01/31/2023, 9:21 AMrp
01/31/2023, 9:30 AMsullof
02/14/2023, 9:18 PMpasswordless
recipe, the user can spam the service creating different accounts just using, for example
- newuser@gmail.com
- new.user@gmail.com
- newuser+two@gmail.com
etc.
Right now, we enforce that on our side and we clean any user's email removing aliases. It looks like we cannot tell SuperTokens to enforce that.
It would be very good if SuperTokens adds an option to activate a restriction.
An alternative solution would be if there is a hook, like preValidate
, that we can set up to make validation on the email.
It would also solve the common use-case where the app can accept only users that have an email on a certain set of domains.productdevbook
03/04/2023, 8:21 AMproductdevbook
03/04/2023, 8:32 AMproductdevbook
03/04/2023, 9:57 AMproductdevbook
03/04/2023, 12:43 PMrecipe/emailverification/emailVerificationClaim.ts(48,3): error TS2612: Property 'validators' will overwrite the base property in 'BooleanClaim'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.
Is there anyone good on the node side?
https://github.com/supertokens/supertokens-node/pull/505
upgrade "typescript": "^4.9.5"
and build this problemproductdevbook
03/04/2023, 4:23 PM/bin/sh: 1: java: not found
ubuntu how to install java and which version ?Leander
03/09/2023, 10:11 PMrp
03/10/2023, 4:15 AMproductdevbook
03/24/2023, 7:24 AMMztea928
04/01/2023, 6:30 AMRob Schilder
04/17/2023, 7:39 AMnpx create-supertokens-app@latest --manager=yarn
and select Capacitor
when prompted.
https://cdn.discordapp.com/attachments/757927552999227393/1097426037136175124/232318901-c4bb8eeb-aa04-42f3-bc33-82cbc454ebc9.png▾
rp
04/22/2023, 3:57 PMproductdevbook
05/10/2023, 5:35 AMMrSiddhartha
05/21/2023, 1:18 PM