mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-03 10:37:27 +01:00
added missing error return and fixed comment typo
This commit is contained in:
1 parent
e3d2608d03
commit
e5390c3d86
2 files changed
+2
-2
No files matched your search
@@ -34,7 +34,7 @@ func recordAuthImpersonate(e *core.RequestEvent) error {
|
|||||||
|
|
||||||
token, err := record.NewStaticAuthToken(time.Duration(form.Duration) * time.Second)
|
token, err := record.NewStaticAuthToken(time.Duration(form.Duration) * time.Second)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e.InternalServerError("Failed to generate static auth token", err)
|
return e.InternalServerError("Failed to generate static auth token", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return recordAuthResponse(e, record, token, "", nil)
|
return recordAuthResponse(e, record, token, "", nil)
|
||||||
|
|||||||
+1
-1
@@ -93,7 +93,7 @@ type Provider interface {
|
|||||||
SetUserInfoURL(url string)
|
SetUserInfoURL(url string)
|
||||||
|
|
||||||
// Extra returns a shallow copy of any custom config data
|
// Extra returns a shallow copy of any custom config data
|
||||||
// that the provider may be need.
|
// that the provider may need.
|
||||||
Extra() map[string]any
|
Extra() map[string]any
|
||||||
|
|
||||||
// SetExtra updates the provider's custom config data.
|
// SetExtra updates the provider's custom config data.
|
||||||
|
|||||||
Reference in new issue
Block a user