DEV Community

Discussion on: JWT authentication in an Angular application with a Go backend

Collapse
 
sergioprats1 profile image
Sergio Prats López

I think the func account should be spliting by points and not by spaces at
authArr := strings.Split(authToken, " ")
Also, I believe the expected value for len(authArr) should be 3.