Closed faisal-porag closed 1 year ago
Could you give an example of how you generated the token, imported/generated keys etc...?
v4.public.eyJhY2Nlc3NfdXVpZCI6IjEyMWRmNmNiLWM1ZGQtNGFhOC05MGIyLWVhMTk4OGY5NTMyMyIsImF1dGhvcml6ZWQiOiJ0cnVlIiwiZXhwIjoiMjAyMy0wNC0xMFQxOToyODoxNiswNjowMCIsInVzZXJfaWQiOiIzOSJ9syp0sEB11Qs6SPSIPh5m0eufmBmxH3JvMCmS45OeJG0ypGrmJAju_cnIc1pF0d00yjKJ98V_9zMLlYdk8GioDQ
I was looking more for the code you used to generate the token 🙂
parser := paseto.NewParser() publicKey, err := paseto.NewV4AsymmetricPublicKeyFromHex(config.PAccessKey) if err != nil { fmt.Println(err) // panic or deal with error of invalid key }
this err show me bad signature. but why??