fix: improve secret generation for apple idp (#7843)

* fix: improve secret generation for apple idp

* remove accidental commit

* change exp time

* change exp time

* change exp time

* change exp time
This commit is contained in:
Livio Spring
2024-04-26 17:46:15 +02:00
committed by GitHub
parent 5811a7b6a5
commit 6ab06aa249
3 changed files with 5 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ func clientSecretFromPrivateKey(key []byte, teamID, clientID, keyID string) (str
if err != nil {
return "", err
}
iat := time.Now()
iat := time.Now().Add(-2 * time.Second)
exp := iat.Add(time.Hour)
return crypto.Sign(&openid.JWTTokenRequest{
Issuer: teamID,