Skip to content

Instantly share code, notes, and snippets.

View iykazrji's full-sized avatar

Iyk Azorji iykazrji

View GitHub Profile
@marshallswain
marshallswain / authentication.js
Last active September 24, 2021 08:59
Example tools for using querystring redirects with Feathers OAuth login.
'use strict';
const authentication = require('feathers-authentication');
const jwt = require('feathers-authentication-jwt');
const local = require('feathers-authentication-local');
const oauth2 = require('feathers-authentication-oauth2');
const GithubStrategy = require('passport-github');
// Bring in the oauth-handler
const makeHandler = require('./oauth-handler');
@sonipranjal
sonipranjal / google-sign-in.tsx
Created September 24, 2023 15:10
Supabase + Expo + Google Sign In
// go to supabase dashboard -> into auth -> url config -> put the Redirect URLs as [your-scheme]://google-auth
import * as WebBrowser from "expo-web-browser";
WebBrowser.maybeCompleteAuthSession();
const extractParamsFromUrl = (url: string) => {
const parsedUrl = new URL(url);
const params = parsedUrl.searchParams; // Using searchParams instead of splitting on "#"