Browse Source

try fix again again again again.

master
Gisle Aune 3 years ago
parent
commit
3045931492
  1. 2
      services/auth.go

2
services/auth.go

@ -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

Loading…
Cancel
Save