Skip to content

Instantly share code, notes, and snippets.

@homerjam
homerjam / authentication.js
Last active December 3, 2021 14:41
Nuxt/Feathers/Vuex SSR
const authentication = require('@feathersjs/authentication');
const jwt = require('@feathersjs/authentication-jwt');
const local = require('@feathersjs/authentication-local');
const oauth2 = require('@feathersjs/authentication-oauth2');
const session = require('express-session');
const Auth0Strategy = require('passport-auth0');
module.exports = function (app) {
const config = app.get('authentication');
@homerjam
homerjam / nuxt-auth-firebase-scheme.ts
Created June 4, 2020 12:39
Nuxt Auth Firebase Scheme
import type { SchemeOptions } from '@nuxtjs/auth-next/dist';
import BaseScheme from '@nuxtjs/auth-next/dist/schemes/_scheme';
import * as firebase from 'firebase/app';
import 'firebase/auth';
import jwt from 'jsonwebtoken';
import memoizer from 'lru-memoizer';
import fetch from 'node-fetch';
const DEFAULTS: SchemeOptions = {
name: 'firebase',