Build an Async API in Golang (part 04 - JWT Manager)

preview_player
Показать описание
#coding #golang #backend #jwt #api #backenddeveloper

In this part of the Async API in Go series, we'll implement a JSON Web Token (JWT) manager to handle token generation and parsing logic. We'll also use both access and refresh tokens for authentication.
Рекомендации по теме
Комментарии
Автор

Hey dude been trying to follow along with this series, I'm almost done (on the final video) but I never fixed the issue with the invalid type for JWT tokens. Your code example doesn't highlight it but I keep getting "token signature is invalid: key is of invalid type: ECDSA verify expects *ecdsa.PublicKey" errors, which is fixed when I set the ecdsa public key value in my Parse() function, but it truly never solves an issue the server pumps out for these tokens which is always "ERROR failed to parse token error="token signature is invalid: crypto/ecdsa: verification error"

I'll keep plugging away but just wanted to let you know the code examples in the video are slightly misleading. Cheers!

vinniemac
Автор

hi have u ever used vscode if yes why don't use now and why u chose goland?

kfkfkfk-ornk
visit shbcf.ru