🐛 fix: Fix bugs
This commit is contained in:
@@ -20,6 +20,7 @@ export default function PhoneAuthForm() {
|
||||
const [type, setType] = useState<'login' | 'register' | 'reset'>('login');
|
||||
const [loading, startTransition] = useTransition();
|
||||
const [initialValues, setInitialValues] = useState<API.TelephoneLoginRequest>({
|
||||
identifier: '',
|
||||
telephone: '',
|
||||
telephone_area_code: '1',
|
||||
password: '',
|
||||
|
||||
@@ -19,6 +19,8 @@ export default function Certification({ platform, children }: CertificationProps
|
||||
oAuthLoginGetToken({
|
||||
method: platform,
|
||||
callback: searchParams,
|
||||
// @ts-ignore
|
||||
invite: localStorage.getItem('invite') || '',
|
||||
})
|
||||
.then((res) => {
|
||||
const token = res?.data?.data?.token;
|
||||
|
||||
Reference in New Issue
Block a user