JsonToken
Oke so im trying to implement a video player that can only be accessed when having a jsonwebtoken
currently i have this code ( and its working )
The only thing is i dont want the secret of my jjwt in side client, i already tried to move this to the env file , but for some reason i doesnt work anymore , ( if i log the config.jwtSecret from env) i see the secret in terminal. but the whole signing doestn work anymore
does someone has a solution to help me out putting my secrete not client side
1 Reply
nvm figured it out with state management