mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 10:18:57 +08:00
fix: refresh token to access token (#7949)
* fix: fix refresh token to access token * fix: update the if condition
This commit is contained in:
parent
f525647b40
commit
b8dff86a56
@ -38,6 +38,7 @@ func (h *Handler) Login(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if req.RefreshToken == "" {
|
||||||
// the EE handler wrapper passes the feature flag value in context
|
// the EE handler wrapper passes the feature flag value in context
|
||||||
ssoAvailable, ok := ctx.Value(types.SSOAvailable).(bool)
|
ssoAvailable, ok := ctx.Value(types.SSOAvailable).(bool)
|
||||||
if !ok {
|
if !ok {
|
||||||
@ -52,6 +53,7 @@ func (h *Handler) Login(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
user, err := h.module.GetAuthenticatedUser(ctx, req.OrgID, req.Email, req.Password, req.RefreshToken)
|
user, err := h.module.GetAuthenticatedUser(ctx, req.OrgID, req.Email, req.Password, req.RefreshToken)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user