[#3617] added expiry field to the OAuth2 user

This commit is contained in:
Gani Georgiev
2023-11-27 20:32:28 +02:00
parent 3b79535dc7
commit 99bdb4e701
23 changed files with 70 additions and 0 deletions
+2
View File
@@ -5,6 +5,7 @@ import (
"errors"
"net/http"
"github.com/pocketbase/pocketbase/tools/types"
"golang.org/x/oauth2"
)
@@ -18,6 +19,7 @@ type AuthUser struct {
RawUser map[string]any `json:"rawUser"`
AccessToken string `json:"accessToken"`
RefreshToken string `json:"refreshToken"`
Expiry types.DateTime `json:"expiry"`
}
// Provider defines a common interface for an OAuth2 client.