Fixing tests

This commit is contained in:
Jerome 2025-02-24 13:39:58 +00:00
commit 885590c099
No known key found for this signature in database

View file

@ -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