Is it possible to create short token with JWT

Hey, for my web project, i want to create ‘‘reset token’’ for the users which forgot their password. Currently i’m using JWT to encode and decode the token and take actions for finding user and make changes about the. The problem is, JWT token has 3 parts and if i try to use useParams to get the token, it would be impossible. Can i create short (5-6 length) or just one part JWT token?

Hey there @graphtestql welcome to the community!

Unfortunately JWTs are standardized and tend to be longer because they contain a header, a payload, and a signature. You might be able to use a different token format, although I’m not sure which one.

Alternatively, and I’m not sure if this helps you, but Auth0 does offer ways to change/reset a user’s password:

Hope this helps!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.