mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-20 04:54:07 +02:00
[#6529] added default leeway for the id_token checks
This commit is contained in:
1 parent
653f2d8b16
commit
4155f50fe1
32 files changed
+60
-36
No files matched your search
@@ -141,6 +141,7 @@ func (p *Apple) parseAndVerifyIdToken(idToken string) (jwt.MapClaims, error) {
|
||||
jwtValidator := jwt.NewValidator(
|
||||
jwt.WithExpirationRequired(),
|
||||
jwt.WithIssuedAt(),
|
||||
jwt.WithLeeway(idTokenLeeway),
|
||||
jwt.WithIssuer("https://appleid.apple.com"),
|
||||
jwt.WithAudience(p.clientId),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user