Update example/server/internal/storage.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>
This commit is contained in:
Livio Amstutz 2022-04-21 15:41:35 +02:00 committed by GitHub
parent 5c26b36f29
commit 84a5fb4471
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -480,7 +480,7 @@ func (s *storage) renewRefreshToken(currentRefreshToken string) (string, string,
return token, refreshToken.ID, nil return token, refreshToken.ID, nil
} }
//createRefreshToken will store an access_token in-memory based on the provided information //accessToken will store an access_token in-memory based on the provided information
func (s *storage) accessToken(applicationID, refreshTokenID, subject string, audience, scopes []string) (*Token, error) { func (s *storage) accessToken(applicationID, refreshTokenID, subject string, audience, scopes []string) (*Token, error) {
token := &Token{ token := &Token{
ID: uuid.NewString(), ID: uuid.NewString(),