Secret config key

I have a question regarding the secrets.peertube config key. What is this exactly used for? Can this be changed afterwards? Thanks!

Looks like the secret is mainly used for 2FA user auth. I needed to update the secret, so I cleared the otpSecret field in the database to disable 2FA for all users and asked them to enable it again if needed.

Hi,

Yes it’s used for OTP and also to generate JWT tokens :slight_smile: I’ll add a comment in the config file