This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
// We use lodash to transform the label name, if you don't have lodash, you could either install it, remove that part, or implement your own version of camel case. | |
import camelCase from 'lodash/camelCase' | |
export type AnalyticsListenerContextValue = { | |
// When manually calling stopPropagation, we want to make sure we still capture analytics so prefer using stopPropagation from this provider instead of calling event.stopPropagation directly. | |
stopPropagation: ( | |
event: | |
| React.KeyboardEvent | |
| MouseEvent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://accept-logins.delijn.be | |
https://acc-auth.leaseplan.com | |
https://a0.sluglab.com | |
https://abc.dse.ninja | |
https://acceso.julieta.ai | |
https://access.cognison.com | |
https://2019.textoutthevote.org | |
https://a.id.mufg.jd2.jp | |
https://access.hackplus.services | |
https://a0-xmas-test.dse.ninja |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// Place your supertokens-auth-react workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
"Comment Block": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useEffect, useState} from "react"; | |
import Head from 'next/head'; | |
import 'regenerator-runtime/runtime'; | |
import styles from '../styles/Home.module.css' | |
import {doesSessionExist} from 'supertokens-auth-react/recipe/session'; | |
import { signOut } from "supertokens-auth-react/recipe/emailpassword"; | |
export default function Home() { | |
const [hasSession, setHasSession] = useState(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction | |
import SuperTokens from "supertokens-node"; | |
import Session from "supertokens-node/recipe/session"; | |
import EmailPassword from "supertokens-node/recipe/emailpassword"; | |
import Cors from 'cors'; | |
const apiPort = process.env.APP_PORT || 3000; | |
const apiDomain = process.env.APP_URL || `http://localhost:${apiPort}`; | |
const websitePort = process.env.APP_PORT || 3000; | |
const websiteDomain = process.env.APP_URL || `http://localhost:${websitePort}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Head from 'next/head'; | |
import React, { useEffect } from 'react'; | |
import 'regenerator-runtime/runtime'; | |
import styles from '../../styles/Home.module.css'; | |
import dynamic from 'next/dynamic'; | |
import SuperTokens from 'supertokens-auth-react'; | |
const SuperTokensComponentNoSSR = dynamic(() => import('supertokens-auth-react').then(mod => { | |
return () => mod.getRoutingComponent() || null; | |
}), { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '../styles/globals.css'; | |
import React from "react"; | |
import 'regenerator-runtime/runtime'; | |
import SuperTokens from 'supertokens-auth-react'; | |
import EmailPassword from 'supertokens-auth-react/recipe/emailpassword'; | |
import Session from 'supertokens-auth-react/recipe/session'; | |
const websitePort = process.env.APP_PORT || 3000; | |
const websiteUrl = process.env.NEXT_PUBLIC_APP_URL || `http://localhost:${websitePort}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
click() { | |
this.get('performItemAction')(); | |
} | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
hasName: Ember.computed.notEmpty('name'), | |
actions: { | |
log(message) { | |
console.log(message); | |
} | |
} | |
}); |