Variable completeOAuthRegistrationConst
completeOAuthRegistration: (
...args: [{ client: Client; registrationToken: string }],
) => Effect<
{ accessTokenId: string; email: string; identifier: string },
{
cause?: unknown;
context: Record<string, unknown>;
name: "OAuthRegistrationError";
stack?: string;
get _tag(): Name;
get message(): string;
},
never,
> = ...
Type declaration
- (
...args: [{ client: Client; registrationToken: string }],
): Effect<
{ accessTokenId: string; email: string; identifier: string },
{
cause?: unknown;
context: Record<string, unknown>;
name: "OAuthRegistrationError";
stack?: string;
get _tag(): Name;
get message(): string;
},
never,
> Parameters
- ...args: [{ client: Client; registrationToken: string }]
Returns Effect<
{ accessTokenId: string; email: string; identifier: string },
{
cause?: unknown;
context: Record<string, unknown>;
name: "OAuthRegistrationError";
stack?: string;
get _tag(): Name;
get message(): string;
},
never,
>
Complete OAuth recovery registration for the local identity: submit the registration token plus the identity and space keys to Edge (which routes the OAuth refresh token into the default space and records the recovery binding), then materialize the credential in the default space — an
AccessTokenkeyed by the returned id so rotated tokens land on it (an unkeyed refresh token is treated as orphaned and dropped), wrapped in aConnectionso the connected account surfaces as a first-class object. Registration completes exactly once per account, so the pair is created unconditionally with no de-dup query.