Improve auth docs and add finishAuth convenience method
This commit is contained in:
parent
44a440854f
commit
b1f4b65709
1 changed files with 47 additions and 19 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue