register - facebook redirect - failure in regis..
This commit is contained in:
parent
ef7f19e7c2
commit
4b25719417
|
@ -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',
|
||||
|
|
|
@ -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>
|
|
@ -0,0 +1 @@
|
|||
whoops error
|
Loading…
Reference in New Issue