Help Center
Pages

How do I add Atlas to my app?

Topic
Getting started
Asked by
New developers
AdminUpdated Sep 11, 2026

On the frontend, the entire integration is a provider plus a component. In React:

import { AtlasProvider, SignIn, useUser } from '@atlas/react';

function App() {
  const { user, isLoaded } = useUser();
  if (!isLoaded) return <Spinner />;
  if (!user) return <SignIn />;
  return <Dashboard user={user} />;
}

<AtlasProvider publishableKey="pk_live_…">
  <App />
</AtlasProvider>

That gives you sign-in, sign-up, sessions and the current user with no token plumbing of your own. On the backend, verify the session token your frontend sends with your secret key and you get the authenticated user, organization and permissions.

The same model is available for Next.js, Vue, Nuxt, Angular, Svelte, React Native and vanilla JS. See the framework guides at https://developers.atlasauth.net.

Wrap your app in <AtlasProvider> with your publishable key, then use the prebuilt <SignIn/> component and the useUser() hook. That's the whole frontend integration — usually under 15 minutes.

Was this page helpful?