mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-01 18:00:25 +01:00
[#3617] added expiry field to the OAuth2 user
This commit is contained in:
1 parent
3b79535dc7
commit
99bdb4e701
23 files changed
+70
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user