Fixing tests
This commit is contained in:
parent
26b47438c6
commit
885590c099
1 changed files with 9 additions and 7 deletions
|
|
@ -75,13 +75,13 @@ export function clientRegistrationHandler({
|
|||
}
|
||||
|
||||
const clientMetadata = parseResult.data;
|
||||
const isPublicClient = clientMetadata.token_endpoint_auth_method !== 'none'
|
||||
const isPublicClient = clientMetadata.token_endpoint_auth_method === 'none'
|
||||
|
||||
// Generate client credentials
|
||||
const clientId = crypto.randomUUID();
|
||||
const clientSecret = isPublicClient
|
||||
? crypto.randomBytes(32).toString('hex')
|
||||
: undefined;
|
||||
? undefined
|
||||
: crypto.randomBytes(32).toString('hex');
|
||||
const clientIdIssuedAt = Math.floor(Date.now() / 1000);
|
||||
|
||||
// Calculate client secret expiry time
|
||||
|
|
|
|||
Loading…
Reference in a new issue