include nonce in code creation
This commit is contained in:
parent
8cd0498db4
commit
2a7fd4690b
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@icynet/oauth2-provider",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "OAuth2.0 Provider for Icy Network",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -179,7 +179,8 @@ export const authorization = wrap(async (req, res) => {
|
||||
oauth2.model.user.getId(user),
|
||||
oauth2.model.client.getId(client),
|
||||
scope,
|
||||
oauth2.model.code.ttl
|
||||
oauth2.model.code.ttl,
|
||||
req.query.nonce as string,
|
||||
);
|
||||
|
||||
resObj = { code: data, ...resObj };
|
||||
|
@ -179,7 +179,8 @@ export interface OAuth2CodeAdapter {
|
||||
userId: string | number,
|
||||
clientId: string | number,
|
||||
scope: string | string[],
|
||||
ttl: number
|
||||
ttl: number,
|
||||
nonce?: string
|
||||
) => Promise<string>;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user