Chord OMS
Developer Tools
Authentication
2min
auth providers we currently support two auth providers magic and stytch note we do also support cognito, but you will need to contact your account rep or sales rep for more information chordprovider in order to use our auth providers, you will first need to wrap your app in chordprovider and pass it an auth client stytch import { chordprovider } from '@chordcommerce/react autonomy' import { stytchclient } from '@chordcommerce/chord stytch' const myapp = ({ component, pageprops }) => { const stytchclient = new stytchclient({ apikey process env next public stytch api key, redirectpath '/authenticate', sessiondurationminutes 60 }) return ( \<chordprovider auth={stytchclient}> \<component pageprops={ pageprops} /> \</chordprovider> ) } magic import { chordprovider } from '@chordcommerce/react autonomy' import { magicclient } from '@chordcommerce/chord magic' const myapp = ({ component, pageprops }) => { const magicclient = new magicclient(process env magic api key) return ( \<chordprovider auth={magicclient}> \<component pageprops={ pageprops} /> \</chordprovider> ) } migration guides for more on how to add auth to your site see the next js ↔️ stytch migration guide docid\ iku qprh57qgybehrlkfs or magic migration guide docid 8sjlmf 4vgwpsx34c 7yb documentation