Skip to content

Commit

Permalink
chore: cast type with as because rollup-dts plugin issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jul 17, 2024
1 parent 1db29c9 commit cfc6bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as arctic from "arctic";
import Elysia from "elysia";
import { Elysia } from "elysia";
import type {
GetProvider,
GetProviderAuthorizeOptions,
Expand Down Expand Up @@ -82,7 +82,7 @@ export function oauth2<Options extends ElysiaOauth2Options>(options: Options) {
...options,
);

return redirect(url.href);
return redirect(url.href) as Response;
},
authorize: async <Provider extends keyof Options>(
provider: Provider,
Expand Down

0 comments on commit cfc6bb9

Please sign in to comment.