Function createFirstPartyToken
- createFirstPartyToken<S extends SchemaTypeDefinition>(
wrdSchema: WRDSchema<S>,
type: "id",
userid: number,
options?: AuthTokenOptions,
): Promise<FirstPartyToken & { expires: Instant }>Type Parameters
- S extends SchemaTypeDefinition
Parameters
Returns Promise<FirstPartyToken & { expires: Instant }>
- createFirstPartyToken<S extends SchemaTypeDefinition>(
wrdSchema: WRDSchema<S>,
type: "id" | "api",
userid: number,
options?: AuthTokenOptions,
): Promise<FirstPartyToken>Create a token for use with this server
Type Parameters
- S extends SchemaTypeDefinition
Parameters
Returns Promise<FirstPartyToken>
Create a token for use with this server