mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-07 04:27:25 +01:00
reasign the OAuth2 event fields to make sure that the event always have the latest OAuth2 state
This commit is contained in:
1 parent
36ab3fd162
commit
fd97732d4d
1 file changed
+3
@@ -270,6 +270,9 @@ func (api *recordAuthApi) authWithOAuth2(c echo.Context) error {
|
|||||||
return NewBadRequestError("Failed to authenticate.", err)
|
return NewBadRequestError("Failed to authenticate.", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e.Record = data.Record
|
||||||
|
e.OAuth2User = data.OAuth2User
|
||||||
|
|
||||||
return api.authResponse(e.HttpContext, e.Record, e.OAuth2User)
|
return api.authResponse(e.HttpContext, e.Record, e.OAuth2User)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user