Skip to content

Commit

Permalink
improve type
Browse files Browse the repository at this point in the history
- make package name consistent with others
  • Loading branch information
Huliiiiii committed Jul 21, 2024
1 parent ad0d0ca commit 438101f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/auth-solid-start/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "edgedb-auth-solid-start",
"name": "@edgedb/auth-solid-start",
"description": "Helper library to integrate the EdgeDB Auth extension with Solid Start",
"version": "0.1.0",
"author": "EdgeDB <[email protected]>",
Expand Down
14 changes: 7 additions & 7 deletions packages/auth-solid-start/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface CreateAuthRouteHandlers {
provider: BuiltinOAuthProviderNames;
isSignUp: boolean;
}>,
): Promise<never | Response>;
): Promise<Response>;
onEmailPasswordSignIn(
params: ParamsOrError<{ tokenData: TokenData }>,
): Promise<Response>;
Expand All @@ -79,19 +79,19 @@ export interface CreateAuthRouteHandlers {
{ tokenData: TokenData },
{ verificationToken?: string }
>,
): Promise<never | Response>;
): Promise<Response>;
onWebAuthnSignUp(
params: ParamsOrError<{ tokenData: TokenData | null }>,
): Promise<Response>;
onWebAuthnSignIn(
params: ParamsOrError<{ tokenData: TokenData }>,
): Promise<never | Response>;
): Promise<Response>;
onMagicLinkCallback(
params: ParamsOrError<{ tokenData: TokenData; isSignUp: boolean }>,
): Promise<never | Response>;
): Promise<Response>;
onMagicLinkSignIn(
params: ParamsOrError<{ tokenData: TokenData }>,
): Promise<never | Response>;
): Promise<Response>;
onBuiltinUICallback(
params: ParamsOrError<
(
Expand All @@ -105,8 +105,8 @@ export interface CreateAuthRouteHandlers {
}
) & { isSignUp: boolean }
>,
): Promise<never | Response>;
onSignout(evt: APIEvent): Promise<never | Response>;
): Promise<Response>;
onSignout(evt: APIEvent): Promise<Response>;
}

export class SolidServerAuth extends SolidAuthHelpers {
Expand Down

0 comments on commit 438101f

Please sign in to comment.