Back

Custom url schema as post auth redirect

  • 0
  • Web
  • Cloud
devo_wm
13 Mar, 2024, 19:42

Wondering if there was an option to use a custom schema for a redirect url after auth.

I tried something like

TypeScript
  const authWithGoogle = ()=> account.createOAuth2Session(OAuthProvider.Google, 'my-schema://oauth-success', 'my-schema://oauth-failed')

to no avail.

Only asking because I noticed that one is able to using supabase:

https://supabase.com/blog/authentication-in-ionic-angular#magic-links-for-native-apps

TL;DR
Developers are trying to set a custom URL schema for post-auth redirect in Appwrite but are unable to do so. The example provided doesn't work. Also, the developers mention that Supabase provides support for this feature.
D5
13 Mar, 2024, 19:58

You can specify the redirect URl in the case of appwrite:

TypeScript
account.createOAuth2Session('google', [LINK_ON_SUCCESS], [LINK_ON_FAILURE]);

Is that what you were searching for?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more