Merge branch 'main' into feat-actor-request

This commit is contained in:
Tim Möhlmann 2024-03-14 08:56:36 +02:00 committed by GitHub
commit 6e3c07d795
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 307 additions and 31 deletions

View file

@ -69,6 +69,9 @@ func CreateTokenResponse(ctx context.Context, request IDTokenRequest, client Cli
}
func createTokens(ctx context.Context, tokenRequest TokenRequest, storage Storage, refreshToken string, client AccessTokenClient) (id, newRefreshToken string, exp time.Time, err error) {
ctx, span := tracer.Start(ctx, "createTokens")
defer span.End()
if needsRefreshToken(tokenRequest, client) {
return storage.CreateAccessAndRefreshTokens(ctx, tokenRequest, refreshToken)
}