diff --git a/package.json b/package.json index ecddfab..7ab2697 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@icynet/oauth2-provider", - "version": "1.0.4", + "version": "1.0.5", "description": "OAuth2.0 Provider for Icy Network", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/controller/authorization.ts b/src/controller/authorization.ts index e07d464..7de7346 100644 --- a/src/controller/authorization.ts +++ b/src/controller/authorization.ts @@ -211,7 +211,6 @@ export const authorization = wrap(async (req, res) => { user, client, scope, - redirectUri, req.query.nonce as string | undefined ); diff --git a/src/controller/tokens/authorizationCode.ts b/src/controller/tokens/authorizationCode.ts index 8be9463..b6cf5d3 100644 --- a/src/controller/tokens/authorizationCode.ts +++ b/src/controller/tokens/authorizationCode.ts @@ -120,7 +120,6 @@ export async function authorizationCode( user, client, cleanScope, - undefined, code.nonce ); } catch (err) { diff --git a/src/model/model.ts b/src/model/model.ts index 2fe04a1..c66da86 100644 --- a/src/model/model.ts +++ b/src/model/model.ts @@ -330,7 +330,6 @@ export interface JWTAdapter { user: OAuth2User, client: OAuth2Client, scope: string[], - redirectUri?: string, nonce?: string ) => Promise; }