Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgxvii committed Aug 13, 2024
1 parent cf5bfc6 commit 82433a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pages/api/consent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NextApiRequest, NextApiResponse } from "next"
import { Configuration, OAuth2Api } from "@ory/client"
import { NextApiRequest, NextApiResponse } from "next"

const hydra = new OAuth2Api(
new Configuration({
Expand Down
4 changes: 2 additions & 2 deletions pages/consent.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useEffect, useState } from "react"
import { useRouter } from "next/router"
import ory from "../pkg/sdk"
import React, { useEffect, useState } from "react"

import { MarginCard, CardTitle, TextCenterButton } from "../pkg"
import ory from "../pkg/sdk"

const Consent = () => {
const router = useRouter()
Expand Down
11 changes: 10 additions & 1 deletion pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,16 @@ const Login: NextPage = () => {
setFlow(data)
})
.catch(handleFlowError(router, "login", setFlow))
}, [flowId, router, router.isReady, aal, refresh, returnTo, loginChallenge, flow])
}, [
flowId,
router,
router.isReady,
aal,
refresh,
returnTo,
loginChallenge,
flow,
])

const onSubmit = (values: UpdateLoginFlowBody) =>
router
Expand Down

0 comments on commit 82433a2

Please sign in to comment.