added missing error return and fixed comment typo

This commit is contained in:
Gani Georgiev
2026-03-19 08:48:30 +02:00
parent e3d2608d03
commit e5390c3d86
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ func recordAuthImpersonate(e *core.RequestEvent) error {
token, err := record.NewStaticAuthToken(time.Duration(form.Duration) * time.Second)
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)

View File

@@ -93,7 +93,7 @@ type Provider interface {
SetUserInfoURL(url string)
// 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
// SetExtra updates the provider's custom config data.