this is a simple function to create jwt token
based on id
createAccessToken(id: string) {
const token = sign({ id }, process.env.JWT_SECRET, { expiresIn: '1d' });
return token;
}
now when I give the token to https://jwt.io/ without specifing the secretkey
the website can still decrypt it
how can this be possible?