register - facebook redirect - failure in regis..

This commit is contained in:
Ota Prokopec 2023-02-26 17:56:05 +01:00
parent ef7f19e7c2
commit 4b25719417
3 changed files with 11 additions and 10 deletions

View File

@ -49,7 +49,11 @@
},
{
path: '/register',
component: () => import('$routes/register.svelte'),
component: () => import('$root/src/routes/register/register.svelte'),
},
{
path: '/register/failed',
component: () => import('$routes/register/registerFailed.svelte'),
},
{
path: '/:gameurl',

View File

@ -1,13 +1,9 @@
<script>
import { account } from '$lib/appwrite'
import { ID } from 'appwrite'
import HiddenInput from '../lib/components/Inputs/Hidden_Input.svelte'
import GoogleLogo from '../lib/svg/GoogleLogo.svelte'
import TopImage from '../lib/svg/Top-Image.svelte'
import HiddenInput from '../../lib/components/Inputs/Hidden_Input.svelte'
import GoogleLogo from '../../lib/svg/GoogleLogo.svelte'
import TopImage from '../../lib/svg/Top-Image.svelte'
export let purpose = 'register' //possible values login, register
@ -71,12 +67,12 @@
</div>
<div class="continue_with">
<button on:click={() => account.createOAuth2Session('google')}>
<button on:click={() => account.createOAuth2Session('google', '/', '/register/failed')}>
<GoogleLogo />
<p>Continue with Google</p>
</button>
<button on:click={() => account.createOAuth2Session('facebook')}>
<button on:click={() => account.createOAuth2Session('facebook', '/', '/register/failed')}>
<p>Continue with Facebook</p>
</button>
</div>

View File

@ -0,0 +1 @@
whoops error