From 52468fd2bb98c8178efa3d4af63b7dd22b75326d Mon Sep 17 00:00:00 2001 From: wangsijie Date: Thu, 12 Jan 2023 16:58:17 +0800 Subject: [PATCH] feat(client): remove scope for access token grant (#439) --- packages/client/src/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index f03dfa43..769e349a 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -1,4 +1,3 @@ -import { ReservedScope } from '@logto/core-kit'; import { CodeTokenResponse, decodeIdToken, @@ -278,7 +277,6 @@ export default class LogtoClient { tokenEndpoint, refreshToken: currentRefreshToken, resource, - scopes: resource ? [ReservedScope.OfflineAccess] : undefined, // Force remove openid scope from the request }, this.adapter.requester );