Skip to content

auth.logout

Removes every credential omfp stored for a provider (PRT-133).

/** `auth.login` and `auth.logout` params: the provider's pi id (PRT-130, PRT-133). */
export type ProviderRef = {
providerId: string;
};
/** `auth.logout` result (PRT-133). */
export type LoggedOut = {
providerId: string;
/**
* What still authenticates the provider once they are gone, as pi names it (e.g. an environment variable);
* `null` when nothing does.
*/
remainingSource?: string | null;
/** How many stored credentials (logins and stored keys) of the provider were removed. */
removed: number;
};