Function: createAuthAttributes()
@arolariu/website / instrumentation.server / createAuthAttributes
Function: createAuthAttributes()
createAuthAttributes(
authenticated,options?):AuthAttributes
Defined in: instrumentation.server.ts:851
Create authentication semantic attributes.
Parameters
authenticated
boolean
Whether the user is authenticated
options?
Additional auth attributes
role?
string
method?
string
provider?
string
Returns
Type-safe authentication attributes
Example
const attrs = createAuthAttributes(true, {
role: 'admin',
method: 'clerk',
provider: 'clerk',
});
// was this page useful?