added docs

This commit is contained in:
mqf20 2025-01-27 10:23:26 +08:00
parent 55839fdf82
commit 66debfb3b1
No known key found for this signature in database

View file

@ -596,6 +596,10 @@ func (s *Storage) createRefreshToken(accessToken *Token, amr []string, authTime
} }
// renewRefreshToken checks the provided refresh_token and creates a new one based on the current // renewRefreshToken checks the provided refresh_token and creates a new one based on the current
//
// [Refresh Token Rotation] is implemented.
//
// [Refresh Token Rotation]: https://www.rfc-editor.org/rfc/rfc6819#section-5.2.2.3
func (s *Storage) renewRefreshToken(currentRefreshToken string) (string, string, error) { func (s *Storage) renewRefreshToken(currentRefreshToken string) (string, string, error) {
s.lock.Lock() s.lock.Lock()
defer s.lock.Unlock() defer s.lock.Unlock()