extension code updated

This commit is contained in:
n4ze3m
2023-04-11 15:19:21 +05:30
parent 6bc176ef44
commit a3535bb5c5
6 changed files with 119 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ export default function Login() {
const onSubmit = async (token: string) => {
const response = await axios.post(
`${process.env.PLASMO_PUBLIC_CLIENT_URL}/api/verify`,
`${process.env.PLASMO_PUBLIC_API_URL}/user/validate`,
{
token
}
@@ -39,7 +39,7 @@ export default function Login() {
},
onError: (e:any) => {
if (axios.isAxiosError(e)) {
setErr(e.response?.data.error)
setErr(e.response?.data.detail)
} else {
setErr(e?.message)
}
@@ -47,6 +47,9 @@ export default function Login() {
}
)
return (
<div className="isolate bg-gray-100 text-gray-800">
<div className="absolute inset-x-0 top-[-10rem] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[-20rem]">