Improve auth docs and add finishAuth convenience method

This commit is contained in:
Justin Spahr-Summers 2025-02-17 10:45:34 +00:00
commit b1f4b65709
No known key found for this signature in database

View file

@ -147,6 +147,12 @@ export interface OAuthClientProvider {
export type AuthResult = "AUTHORIZED" | "REDIRECT";
export class UnauthorizedError extends Error {
constructor(message?: string) {
super(message ?? "Unauthorized");
}
}
/**
* Orchestrates the full auth flow with a server.
*