mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-24 01:11:52 +03:00
Fix incorrectly swapped refreshToken and accessToken (#490)
This commit is contained in:
@@ -155,7 +155,7 @@ func (oc *OidcController) createTokensHandler(c *gin.Context) {
|
|||||||
input.ClientID, input.ClientSecret, _ = c.Request.BasicAuth()
|
input.ClientID, input.ClientSecret, _ = c.Request.BasicAuth()
|
||||||
}
|
}
|
||||||
|
|
||||||
idToken, refreshToken, accessToken, expiresIn, err :=
|
idToken, accessToken, refreshToken, expiresIn, err :=
|
||||||
oc.oidcService.CreateTokens(c.Request.Context(), input)
|
oc.oidcService.CreateTokens(c.Request.Context(), input)
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
|||||||
Reference in New Issue
Block a user