fix: wrong signing method
This commit is contained in:
parent
41b25abaaf
commit
aa52bd2e59
|
@ -67,7 +67,7 @@ func (a *appInstallApi) handlerAppGetAccessToken(w http.ResponseWriter, r *http.
|
||||||
"exp": expirationTime,
|
"exp": expirationTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims)
|
token := jwt.NewWithClaims(jwt.SigningMethodRS256, claims)
|
||||||
|
|
||||||
signedToken, err := token.SignedString(privateKey)
|
signedToken, err := token.SignedString(privateKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue