WithSession adds the session to the context - shared implementation
(ctx context.Context, s *models.Session)
| 51 | |
| 52 | // WithSession adds the session to the context - shared implementation |
| 53 | func WithSession(ctx context.Context, s *models.Session) context.Context { |
| 54 | return context.WithValue(ctx, SessionKey, s) |
| 55 | } |
| 56 | |
| 57 | // WithOAuthServerClient adds an OAuth server client to the context |
| 58 | func WithOAuthServerClient(ctx context.Context, client *models.OAuthServerClient) context.Context { |
no outgoing calls