fix(op): add scope to access token scope

This commit is contained in:
Iñaki Segura 2024-10-09 17:50:23 +02:00
parent 8afb8b8d5f
commit ee6e4acb2a
7 changed files with 14 additions and 9 deletions

View file

@ -344,6 +344,7 @@ func CreateDeviceTokenResponse(ctx context.Context, tokenRequest TokenRequest, c
RefreshToken: refreshToken,
TokenType: oidc.BearerToken,
ExpiresIn: uint64(validity.Seconds()),
Scope: tokenRequest.GetScopes(),
}
// TODO(v4): remove type assertion