This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ func (s *AuthService) TokenFromContext(ctx context.Context) *models.Token {
|
|||||||
func (s *AuthService) SpinOffContext(ctx context.Context) context.Context {
|
func (s *AuthService) SpinOffContext(ctx context.Context) context.Context {
|
||||||
token := s.TokenFromContext(ctx)
|
token := s.TokenFromContext(ctx)
|
||||||
|
|
||||||
return context.WithValue(context.Background(), contextKey, &token)
|
return context.WithValue(context.Background(), contextKey, token)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RequestWithToken either returns the request, or the request with a new context that
|
// RequestWithToken either returns the request, or the request with a new context that
|
||||||
|
|||||||
Reference in New Issue
Block a user