Remix
Remix
remix/auth · FunctionView Source

createAtmosphereAuthProvider

Summary

Creates an Atmosphere auth provider with shared client options.

Because atproto discovery is account-specific, call prepare(handleOrDid) before passing this provider to startExternalAuth().

Signature

function createAtmosphereAuthProvider<profile extends AtmosphereAuthProfile>(
  options: AtmosphereAuthProviderOptions<profile>,
): AtmosphereAuthProvider<profile>;

Parameters

options

Atmosphere client configuration, session encryption secret, and optional profile mapping hooks.

Returns

A provider that can be prepared for startExternalAuth() and passed directly to finishExternalAuth() and refreshExternalAuth().