method
RiduAuth.rotate
Replace the current bearer token without extending the session.
Arguments
| Argument | Type | Description |
|---|---|---|
options | RequestOptions | | Request options such as an AbortSignal. |
Returns
The declared result.
Promise<SessionFor<Config, SessionCollection<Config, DefaultAuth>>>Full signature
RiduAuth.rotate(
options?: RequestOptions,
): Promise<SessionFor<Config, SessionCollection<Config, DefaultAuth>>>Related types
RequestOptionsOptions shared by every request.
SessionForOne authenticated session narrowed to the auth collection that owns it. With several auth collections this is a union discriminated by
collection.SessionCollectionAuth collections a client's sessions can belong to: its default, or every auth collection.