commit 70f56d6413723d4ffc56367bb9145492f9ef64c3
parent ac063d63e53715426e995eaa8f961234134c0530
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 31 Mar 2018 21:54:46 +0200
Fix generating JWT Token
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/login/twitter.go b/api/login/twitter.go
@@ -142,7 +142,7 @@ func IssueSession() http.Handler {
}
// Sign and get the complete encoded token as a string using the secret
- tokenString, err := token.SignedString(secret)
+ tokenString, err := token.SignedString([]byte(secret))
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return