Skip to content

TypeScript API / @laikacms/server/oauth2 / generateAuthenticationOptions

Function: generateAuthenticationOptions() ​

ts
function generateAuthenticationOptions(config, userId?): Promise<AuthenticationOptions>;

Generate authentication options

Parameters ​

ParameterTypeDescription
configPasskeyConfig-
userId?stringOptional user ID to limit to specific user's credentials

Returns ​

Promise<AuthenticationOptions>

Released under the MIT License.