NewInMemoryTokenStore creates a new in-memory token store
()
| 127 | |
| 128 | // NewInMemoryTokenStore creates a new in-memory token store |
| 129 | func NewInMemoryTokenStore() OAuthTokenStore { |
| 130 | return &InMemoryTokenStore{ |
| 131 | tokens: concurrent.NewMap[string, *OAuthToken](), |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | func (s *InMemoryTokenStore) GetToken(resourceURL string) (*OAuthToken, error) { |
| 136 | token, ok := s.tokens.Load(resourceURL) |