Z
ZITADEL
Z
ZITADEL
What is default expiration time for reset password code
Original message was deleted
ZITADEL
Join
ZITADEL - Identity infrastructure, simplified for you.
4,316
Members
View on Discord
D
Dev
What is default expiration time for reset password code and how can i change tha...
R
Rajat Singh
•
4/3/25, 8:23 AM
hi
@Dev thanks for your question
, let me check
R
Rajat Singh
•
4/3/25, 8:26 AM
hi
@Dev I think you meant the code that
's been sent on the email to reset password
, correct
?
.
this is how you can do it
Default Settings
-
> Secret Generators
you can read about all the options here
https://zitadel.com/docs/guides/manage/console/default-settings#secret-generator
D
Dev
https://zitadel.com/docs/apis/resources/user_service_v2/user-service-password-re...
R
Rajat Singh
•
4/3/25, 8:47 AM
ah okay
, thanks for the clarification
, you didn
't mention this earlier so I assumed that you
're trying to do via UI
, let me check how to do it from the API side
R
Rajat Singh
•
4/3/25, 9:02 AM
Hey Dev
From thr API
, you can use the
secret generator API
SECRET_GENERATOR_TYPE_PASSWORD_RESET_CODE
SECRET_GENERATOR_TYPE_PASSWORD_RESET_CODE
https://zitadel.com/docs/apis/resources/admin/admin-service-update-secret-generator
please check if this helps
.
R
Rajat Singh
•
4/3/25, 9:03 AM
same thing from the UI
D
Dev
Thanks
R
Rajat Singh
•
4/3/25, 11:44 AM
I hope it works out
, you can mark my answer with
to mark it as solved
SECRET_GENERATOR_TYPE_PASSWORD_RESET_CODE
SECRET_GENERATOR_TYPE_PASSWORD_RESET_CODE