Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.
An app that keeps data per person needs accounts. Someone signs in, and from then on the app knows whose notes, orders, or photos to show. Rork has two ways to do that, and you pick one before the agent writes any of it.
What you want
Use
What you set up
Sign in with Google or Sign in with Apple
Rork Auth
Nothing. Rork runs the sign-in for you.
Email and password, magic links, phone codes
Supabase Auth
A Supabase backend on the project.
A magic link is the email that signs a person in when they tap it, with no password to remember.
One project uses one of them, never both. Each hands out its own kind of user ID. Your data rules read only one kind. Put both in one app and you get two sets of users in the same tables, so people start seeing empty screens. You can change your mind later, but anyone who already signed in has to sign up again.
Add Google and Apple sign-in
1
Ask for it in the chat
Add sign in with Google and Apple
2
Let the agent build it
It creates the keys, adds the sign-in screen, and writes the part that keeps a person signed in between visits. It asks you for nothing, because there is nothing only you can provide.
3
Try it yourself
Sign in with your own Google or Apple account, right in the preview next to the chat. Sign-in works in the preview, in the simulator, and on a real phone.In the iOS simulator the Google or Apple window opens in your own browser, not inside the phone screen. The app then carries on as normal. On a real device everything stays inside the app.
4
Ask for what comes after sign-in
After sign in, show a profile screen with the person's name and a sign out button
Four things people expect to do here, and do not:
You do not create a Google sign-in client in the Google Cloud console.
You do not configure Sign in with Apple in the Apple Developer portal.
You do not run a backend. Your app talks to Rork’s sign-in service directly.
You do not store passwords. Google and Apple check the person, so your app never sees one.
After sign-in, the app holds a pass that proves who the person is. It lasts one hour, and the app quietly gets a new one, so nobody is thrown out mid-task. The pass is kept in the safest place each platform has:
App type
Where the session is kept
iPhone app (Swift)
The Keychain, the same store iOS uses for passwords
Expo app (React Native)
SecureStore, the encrypted store on the device
Web app
localStorage in the browser, which is the only store a browser offers
The session survives deleting and reinstalling the app. So while you test, use the sign out button in your own app. Deleting the app does not sign you out.
Three Apple rules that are easy to break
Apple reviews the look and behaviour of Sign in with Apple, and rejects apps that get it wrong. Two of the three are things you might ask the agent for without knowing:
Do not ask for the name and the email again after somebody signs in with Apple. Apple already handed them to your app. A “complete your profile” screen that asks for them is a rejection.
Accept hidden emails. Apple lets people hide their real address and gives your app a relay address that ends in @privaterelay.appleid.com. If your app refuses that as invalid, it is a rejection.
Keep the Apple button as prominent as the Google one. Hide it below the fold, or style it as a small link, and Apple rejects that too.
The AI App Store Reviewer checks your build for these before Apple does. Run it before you submit.
What Rork Auth cannot do
Google and Apple only. No email and password, no magic links, no phone codes, no other providers.
No extra questions inside the sign-in itself. Collect anything else on a screen of your own, after sign-in. Mind the Apple rule above about the name and the email.
No way to move accounts across from another sign-in system.
The variables it adds
You never type these in. They are listed here so the project’s Secrets panel makes sense when you open it:
Variable
What it is
In Secrets
EXPO_PUBLIC_RORK_APP_KEY
Your app’s public key. Safe inside the app.
Listed
EXPO_PUBLIC_RORK_AUTH_URL
The address of Rork’s sign-in service.
Listed
EXPO_PUBLIC_PROJECT_ID
The project ID, used to bring people back into the app after sign-in.
Listed
RORK_AUTH_URL
The same address, for server-side code.
Listed, not editable
RORK_AUTH_SECRET_KEY
The private key that proves a request is your app’s.
Hidden, Rork keeps it
Rork creates all five itself. The private key never appears in the panel, and the agent never asks you for any of them. Treat any request for these values as a mistake. See API keys and environment variables.
Email and password with Supabase Auth
Pick this one when Google and Apple are not enough, for example when your users are staff who have no Google account. It needs a Supabase backend on the project, see How to add a Supabase backend to Rork.
Add email and password sign-in with Supabase
The agent connects the backend, adds the sign-up and sign-in screens, and handles the session.
Supabase sends the confirmation email itself, from a generic address, and it limits how many go out. That is fine while you test. Before real users arrive, set your own mail sender in the Supabase dashboard. Or ask the agent to switch confirmation off while you build.
Other providers, like Facebook or GitHub, also go through Supabase Auth rather than Rork Auth.
Why each person sees only their own data
A database on its own hands out any row to anybody who asks. What stops that is a set of rules on each table, which say “you may read this row only if it is yours”. Those rules need a way to say who is asking, and the name differs by model:
Model
How the rules name the person
Where accounts live
Rork Auth
user_id(), which returns an ID like usr_xxx
Rork’s sign-in service
Supabase Auth
auth.uid(), which returns a Supabase user ID
The auth.users table in your Supabase project
The agent knows which one your project uses, and Rork rejects a database change that uses the wrong one. You never write this by hand.It is still worth knowing, because it explains the strangest bug in this area. A person signs in, everything looks fine, and every screen is empty. That is a rule asking for the wrong kind of user, so no row matches. Tell the agent what you see. Ask it to check the rules against the project’s sign-in model.
Change your mind later
Ask the agent, and name the model you want:
Switch this app to email and password sign-in instead of Google and Apple
It turns the old one off, rewrites the data rules, and replaces the sign-in screens. Accounts do not move across, so do this before you have users, or tell them they need to sign up again.
FAQ
Do I need a backend just for sign-in?
Not with Rork Auth. Google and Apple sign-in works with no backend and no database. You need a backend once you want to store what those people do in your app, see Do You Need a Backend for Your App?.
Do I need an Apple Developer account for Sign in with Apple?
Not to build it or to test it. You need the $99 / year Apple Developer membership to publish the app at all, see Create your Apple Developer Account.
Where do the accounts actually live?
With Rork Auth, the sign-in runs on Rork’s service and your app receives the person’s ID and profile. Anything else you want to keep about them goes in your own database, under your own rules.
Can I have Google sign-in and email and password in the same app?
No. A project uses one model. If you need both kinds of sign-in, pick Supabase Auth and ask the agent to add Google there.
Does sign-in work in the preview, before I publish?
Yes. Sign in with your own account in the preview next to the chat, in the simulator, or on a real phone.
Does it work in a web app too?
Yes. In a web app the sign-in happens in the browser and the session lives in localStorage. One project can hold an iPhone app, an Android app, and a web app, see Convert your app between iOS, Android, and web.
Can I use Rork Cloud with accounts?
Yes. Add sign-in the same way, then keep each person’s rows behind the rules above. See What is Rork Cloud.
A signed-in person sees empty screens. What is wrong?
Almost always the data rules name the wrong kind of user, so every row is filtered out. Ask the agent to check the rules against the project’s sign-in model.
Next steps
Do you need a backend?
What accounts imply for your data, before you build.
Rork Cloud
A managed database and server functions inside Rork.
Supabase backend
Bring your own Supabase project, and its sign-in methods.
AI App Store Reviewer
Catch the Sign in with Apple mistakes before Apple does.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Rork","colors":{"primary":"#171717","light":"#E7E7E7","dark":"#171717"},"logo":{"light":"https://mintcdn.com/rork/eYyf6ge21iySMGg9/logo/light.svg?fit=max\u0026auto=format\u0026n=eYyf6ge21iySMGg9\u0026q=85\u0026s=0c489dc21f64b4a7cdac60383bfffe89","dark":"https://mintcdn.com/rork/eYyf6ge21iySMGg9/logo/dark.svg?fit=max\u0026auto=format\u0026n=eYyf6ge21iySMGg9\u0026q=85\u0026s=e8ccb0a4228b0e3ab2cd46fe90d0aa44"},"favicon":"https://mintcdn.com/rork/S1ERT70sj05hgVrd/favicon.svg?fit=max\u0026auto=format\u0026n=S1ERT70sj05hgVrd\u0026q=85\u0026s=8d03d78f6f5f3d36d3740dfae42b57a5","appearance":{"default":"dark","strict":true},"navbar":{"links":[{"href":"mailto:team@rorkai.com","label":"Support"}],"primary":{"type":"button","label":"Go to App","href":"https://rorkai.com?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs-cta\u0026utm_content=navbar"}},"footer":{"socials":{"x":"https://x.com/rork_app","discord":"https://discord.gg/rxBHytVKaT"}},"seo":{"metatags":{"msvalidate.01":"670B347F489FB0E01541E84B795B596E"},"indexing":"all"},"contextual":{"options":[{"title":"Build with Rork","description":"Turn this guide into an app idea and start building","icon":"/logo/mark.svg","href":{"base":"https://rork.com","query":[{"key":"q","value":"I want to build the next big app inspired by https://docs.rork.com$path"},{"key":"plan","value":"true"},{"key":"utm_source","value":"docs"},{"key":"utm_medium","value":"referral"},{"key":"utm_campaign","value":"docs-cta"},{"key":"utm_content","value":"contextual-menu"}]}},"copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Discord Community","icon":"discord","href":"https://discord.gg/rxBHytVKaT"},{"anchor":"Blog","icon":"newspaper","href":"https://rork.com/blog"},{"anchor":"Guides","icon":"compass","href":"https://rork.com/guides"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rork","hasAudioNarration":false,"actualSubdomain":"rork","customDomains":["docs.rork.com"],"gitSource":{"type":"github","owner":"rorkai","repo":"rorkai","deployBranch":"main","contentDirectory":"frontend/docs","isPrivate":true,"mountPath":"","label":"","_id":"6af3807f48a61271e87f3fb7"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afda269b027a89407dfb468","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Publishing","count":17},{"language":"default","tag":"Build","count":17},{"language":"default","tag":"App Store","count":12},{"language":"default","tag":"Frequently Asked Questions","count":9},{"language":"default","tag":"Marketing","count":8},{"language":"default","tag":"Backend","count":6},{"language":"default","tag":"Choosing a platform","count":5},{"language":"default","tag":"Edit your app","count":5},{"language":"default","tag":"Preview and test","count":5},{"language":"default","tag":"Import your project","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".rork-max-hero{display:grid!important;grid-template-columns:repeat(3, minmax(0, 1fr));gap:20px;align-items:start;margin:8px 0 32px;width:100%}.rork-max-hero-item{min-width:0!important;max-width:none!important;width:auto!important;flex:unset!important;text-align:center}.rork-max-phone{background:#0a0a0a;border:8px solid #0a0a0a;border-radius:36px;box-shadow:0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 45px rgba(0, 0, 0, 0.45);line-height:0;overflow:hidden;width:100%;box-sizing:border-box}.rork-max-duo{display:grid!important;grid-template-columns:repeat(2, minmax(0, 280px));gap:28px;align-items:start;justify-content:center;margin:20px 0 36px;width:100%}.rork-max-solo{display:grid!important;grid-template-columns:minmax(0, 280px);justify-content:center;margin:20px 0 32px;width:100%}.rork-max-phone img,.rork-max-phone video,.rork-max-hero video,.rork-max-duo video,.rork-max-duo img,.rork-max-solo video,.rork-max-solo img{width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;aspect-ratio:660 / 1434!important;object-fit:cover!important;object-position:center top!important;border-radius:0!important;display:block!important;margin:0!important;border:0!important;vertical-align:top}.rork-max-ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:28px 0 36px}.rork-max-ctas a{display:inline-block;padding:12px 28px;font-size:15px;font-weight:600;border-radius:100px;text-decoration:none;text-align:center;box-sizing:border-box;max-width:100%}@media (max-width: 720px){.rork-max-hero,.rork-max-duo{grid-template-columns:minmax(0, 280px)!important;justify-content:center;gap:28px}.rork-max-solo{grid-template-columns:minmax(0, 280px)!important}.rork-max-phone{border-width:7px;border-radius:32px}.rork-max-ctas{flex-direction:column;align-items:stretch}.rork-max-ctas a{width:100%;white-space:normal}}.reviewer-frame{animation:reviewer-rise 700ms ease-out both}.reviewer-area{--reviewer-stagger: 60ms;animation:reviewer-rise 600ms ease-out both;transition:background-color 200ms ease}.reviewer-area:hover{background-color:color-mix(in srgb, currentColor 5%, transparent)}@supports (animation-delay: calc(sibling-index() * 1ms)){.reviewer-area{animation-delay:calc(sibling-index() * var(--reviewer-stagger))}}@supports not (animation-delay: calc(sibling-index() * 1ms)){.reviewer-area:nth-child(1){animation-delay:60ms}.reviewer-area:nth-child(2){animation-delay:120ms}.reviewer-area:nth-child(3){animation-delay:180ms}.reviewer-area:nth-child(4){animation-delay:240ms}.reviewer-area:nth-child(5){animation-delay:300ms}}@keyframes reviewer-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){.reviewer-frame,.reviewer-area{animation:none}.reviewer-area{transition:none}}figure:has(img[src*=\"/images/rork-max-app/\"]){max-width:min(100%, 420px);margin-left:auto;margin-right:auto}figure:has(img[src*=\"/images/rork-max-app/\"]) figcaption{max-width:100%}"}],"page":{"pagePath":"integrations/backend/how-to-set-up-oauth","slug":"/integrations/backend/how-to-set-up-oauth","pageMetadata":{"title":"Add accounts and sign-in to your app","sidebarTitle":"Accounts and sign-in","description":"Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.","keywords":["add login to app","sign in with google","sign in with apple","rork auth","supabase auth email password","user accounts app builder","authentication no code"],"href":"/integrations/backend/how-to-set-up-oauth"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const __snippet_tagCtaLink_3acd3r=event=>{const link=event.currentTarget;const url=new URL(link.href);url.searchParams.set(`utm_content`,window.location.pathname);link.href=url.toString()};const CtaBanner=()=>_jsxs(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`24px`,flexWrap:`wrap`,margin:`40px 0 8px`,padding:`22px 28px`,borderRadius:`16px`,background:`linear-gradient(135deg,rgba(249,115,22,0.10),rgba(255,255,255,0.03),rgba(249,115,22,0.06))`,border:`1px solid rgba(255,255,255,0.08)`},children:[_jsxs(`div`,{children:[_jsx(`div`,{style:{fontSize:`19px`,fontWeight:700,color:`#fff`,letterSpacing:`-0.3px`,lineHeight:1.3},children:`Build your app with Rork today.`}),_jsx(`div`,{style:{fontSize:`14px`,color:`rgba(255,255,255,0.6)`,marginTop:`4px`,lineHeight:1.5},children:`Ship iOS, Android, and web apps by chatting with AI.`})]}),_jsx(`a`,{href:`https://rork.com?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs-cta\u0026utm_content=cta-banner`,onClick:__snippet_tagCtaLink_3acd3r,style:{flexShrink:0,display:`inline-block`,padding:`10px 24px`,background:`linear-gradient(135deg,#fff,#f0f0f0)`,color:`#000`,fontSize:`14px`,fontWeight:600,borderRadius:`100px`,textDecoration:`none`,whiteSpace:`nowrap`},children:`Try Rork for Free`})]});function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,CodeBlock,Heading,Note,Step,Steps,Table,Warning,_MdxComponentBoundary}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`An app that keeps data per person needs accounts. Someone signs in, and from then on the app knows whose notes, orders, or photos to show. Rork has two ways to do that, and you pick one before the agent writes any of it.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`What you want`}),_jsx(_components.th,{children:`Use`}),_jsx(_components.th,{children:`What you set up`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Sign in with Google`}),` or `,_jsx(_components.strong,{children:`Sign in with Apple`})]}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Rork Auth`})}),_jsx(_components.td,{children:`Nothing. Rork runs the sign-in for you.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Email and password, magic links, phone codes`}),_jsx(_components.td,{children:_jsx(_components.strong,{children:`Supabase Auth`})}),_jsx(_components.td,{children:`A Supabase backend on the project.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`magic link`}),` is the email that signs a person in when they tap it, with no password to remember.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`One project uses one of them, never both.`}),` Each hands out its own kind of user ID. Your data rules read only one kind. Put both in one app and you get two sets of users in the same tables, so people start seeing empty screens. You can change your mind later, but anyone who already signed in has to sign up again.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`add-google-and-apple-sign-in`,children:`Add Google and Apple sign-in`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Ask for it in the chat`,children:_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add sign in with Google and Apple`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),_jsx(Step,{title:`Let the agent build it`,children:_jsx(_components.p,{children:`It creates the keys, adds the sign-in screen, and writes the part that keeps a person signed in between visits. It asks you for nothing, because there is nothing only you can provide.`})}),_jsxs(Step,{title:`Try it yourself`,children:[_jsx(_components.p,{children:`Sign in with your own Google or Apple account, right in the preview next to the chat. Sign-in works in the preview, in the simulator, and on a real phone.`}),_jsx(_components.p,{children:`In the iOS simulator the Google or Apple window opens in your own browser, not inside the phone screen. The app then carries on as normal. On a real device everything stays inside the app.`})]}),_jsx(Step,{title:`Ask for what comes after sign-in`,children:_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`After sign in, show a profile screen with the person's name and a sign out button`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]}),`\n`,_jsx(_components.p,{children:`Four things people expect to do here, and do not:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`You do not create a Google sign-in client`}),` in the Google Cloud console.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`You do not configure Sign in with Apple`}),` in the Apple Developer portal.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`You do not run a backend.`}),` Your app talks to Rork’s sign-in service directly.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`You do not store passwords.`}),` Google and Apple check the person, so your app never sees one.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`After sign-in, the app holds a pass that proves who the person is. It lasts one hour, and the app quietly gets a new one, so nobody is thrown out mid-task. The pass is kept in the safest place each platform has:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`App type`}),_jsx(_components.th,{children:`Where the session is kept`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`iPhone app (Swift)`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.strong,{children:`Keychain`}),`, the same store iOS uses for passwords`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Expo app (React Native)`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`SecureStore`}),`, the encrypted store on the device`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Web app`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`localStorage`}),` in the browser, which is the only store a browser offers`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The session survives deleting and reinstalling the app. So while you test, use the `,_jsx(_components.strong,{children:`sign out`}),` button in your own app. Deleting the app does not sign you out.`]}),`\n`,_jsx(Heading,{level:`3`,id:`three-apple-rules-that-are-easy-to-break`,children:`Three Apple rules that are easy to break`}),`\n`,_jsxs(_components.p,{children:[`Apple reviews the look and behaviour of `,_jsx(_components.strong,{children:`Sign in with Apple`}),`, and rejects apps that get it wrong. Two of the three are things you might ask the agent for without knowing:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Do not ask for the name and the email again`}),` after somebody signs in with Apple. Apple already handed them to your app. A “complete your profile” screen that asks for them is a rejection.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Accept hidden emails.`}),` Apple lets people hide their real address and gives your app a relay address that ends in `,_jsx(_components.code,{children:`@privaterelay.appleid.com`}),`. If your app refuses that as invalid, it is a rejection.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Keep the Apple button as prominent as the Google one.`}),` Hide it below the fold, or style it as a small link, and Apple rejects that too.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/ai-app-store-reviewer`,children:`AI App Store Reviewer`}),` checks your build for these before Apple does. Run it before you submit.`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-rork-auth-cannot-do`,children:`What Rork Auth cannot do`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Google and Apple only. No email and password, no magic links, no phone codes, no other providers.`}),`\n`,_jsx(_components.li,{children:`No extra questions inside the sign-in itself. Collect anything else on a screen of your own, after sign-in. Mind the Apple rule above about the name and the email.`}),`\n`,_jsx(_components.li,{children:`No way to move accounts across from another sign-in system.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`the-variables-it-adds`,children:`The variables it adds`}),`\n`,_jsxs(_components.p,{children:[`You never type these in. They are listed here so the project’s `,_jsx(_components.strong,{children:`Secrets`}),` panel makes sense when you open it:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`What it is`}),_jsx(_components.th,{children:`In Secrets`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXPO_PUBLIC_RORK_APP_KEY`})}),_jsx(_components.td,{children:`Your app’s public key. Safe inside the app.`}),_jsx(_components.td,{children:`Listed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXPO_PUBLIC_RORK_AUTH_URL`})}),_jsx(_components.td,{children:`The address of Rork’s sign-in service.`}),_jsx(_components.td,{children:`Listed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EXPO_PUBLIC_PROJECT_ID`})}),_jsx(_components.td,{children:`The project ID, used to bring people back into the app after sign-in.`}),_jsx(_components.td,{children:`Listed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RORK_AUTH_URL`})}),_jsx(_components.td,{children:`The same address, for server-side code.`}),_jsx(_components.td,{children:`Listed, not editable`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RORK_AUTH_SECRET_KEY`})}),_jsx(_components.td,{children:`The private key that proves a request is your app’s.`}),_jsx(_components.td,{children:`Hidden, Rork keeps it`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Rork creates all five itself. The private key never appears in the panel, and `,_jsx(_components.strong,{children:`the agent never asks you for any of them`}),`. Treat any request for these values as a mistake. See `,_jsx(_components.a,{href:`/features/secrets`,children:`API keys and environment variables`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`email-and-password-with-supabase-auth`,children:`Email and password with Supabase Auth`}),`\n`,_jsxs(_components.p,{children:[`Pick this one when Google and Apple are not enough, for example when your users are staff who have no Google account. It needs a Supabase backend on the project, see `,_jsx(_components.a,{href:`/backend/supabase`,children:`How to add a Supabase backend to Rork`}),`.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add email and password sign-in with Supabase`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`The agent connects the backend, adds the sign-up and sign-in screens, and handles the session.`}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Supabase sends the confirmation email itself, from a generic address, and it limits how many go out. That is fine while you test. Before real users arrive, set your own mail sender in the Supabase dashboard. Or ask the agent to switch confirmation off while you build.`})}),`\n`,_jsx(_components.p,{children:`Other providers, like Facebook or GitHub, also go through Supabase Auth rather than Rork Auth.`}),`\n`,_jsx(Heading,{level:`2`,id:`why-each-person-sees-only-their-own-data`,children:`Why each person sees only their own data`}),`\n`,_jsxs(_components.p,{children:[`A database on its own hands out any row to anybody who asks. What stops that is a set of rules on each table, which say “you may read this row only if it is yours”. Those rules need a way to say `,_jsx(_components.strong,{children:`who is asking`}),`, and the name differs by model:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`How the rules name the person`}),_jsx(_components.th,{children:`Where accounts live`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Rork Auth`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`user_id()`}),`, which returns an ID like `,_jsx(_components.code,{children:`usr_xxx`})]}),_jsx(_components.td,{children:`Rork’s sign-in service`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Supabase Auth`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`auth.uid()`}),`, which returns a Supabase user ID`]}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`auth.users`}),` table in your Supabase project`]})]})]})]}),`\n`,_jsx(_components.p,{children:`The agent knows which one your project uses, and Rork rejects a database change that uses the wrong one. You never write this by hand.`}),`\n`,_jsx(_components.p,{children:`It is still worth knowing, because it explains the strangest bug in this area. A person signs in, everything looks fine, and every screen is empty. That is a rule asking for the wrong kind of user, so no row matches. Tell the agent what you see. Ask it to check the rules against the project’s sign-in model.`}),`\n`,_jsx(Heading,{level:`2`,id:`change-your-mind-later`,children:`Change your mind later`}),`\n`,_jsx(_components.p,{children:`Ask the agent, and name the model you want:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Switch this app to email and password sign-in instead of Google and Apple`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`It turns the old one off, rewrites the data rules, and replaces the sign-in screens. Accounts do not move across, so do this before you have users, or tell them they need to sign up again.`}),`\n`,_jsx(Heading,{level:`2`,id:`faq`,children:`FAQ`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Do I need a backend just for sign-in?`,id:`do-i-need-a-backend-just-for-sign-in`,children:_jsxs(_components.p,{children:[`Not with `,_jsx(_components.strong,{children:`Rork Auth`}),`. Google and Apple sign-in works with no backend and no database. You need a backend once you want to store what those people do in your app, see `,_jsx(_components.a,{href:`/backend/index`,children:`Do You Need a Backend for Your App?`}),`.`]})}),_jsx(Accordion,{title:`Do I need an Apple Developer account for Sign in with Apple?`,id:`do-i-need-an-apple-developer-account-for-sign-in-with-apple`,children:_jsxs(_components.p,{children:[`Not to build it or to test it. You need the `,_jsx(_components.strong,{children:`$99 / year`}),` Apple Developer membership to publish the app at all, see `,_jsx(_components.a,{href:`/store-guides/apple-developer-account`,children:`Create your Apple Developer Account`}),`.`]})}),_jsx(Accordion,{title:`Where do the accounts actually live?`,id:`where-do-the-accounts-actually-live`,children:_jsxs(_components.p,{children:[`With `,_jsx(_components.strong,{children:`Rork Auth`}),`, the sign-in runs on Rork’s service and your app receives the person’s ID and profile. Anything else you want to keep about them goes in your own database, under your own rules.`]})}),_jsx(Accordion,{title:`Can I have Google sign-in and email and password in the same app?`,id:`can-i-have-google-sign-in-and-email-and-password-in-the-same-app`,children:_jsx(_components.p,{children:`No. A project uses one model. If you need both kinds of sign-in, pick Supabase Auth and ask the agent to add Google there.`})}),_jsx(Accordion,{title:`Does sign-in work in the preview, before I publish?`,id:`does-sign-in-work-in-the-preview-before-i-publish`,children:_jsx(_components.p,{children:`Yes. Sign in with your own account in the preview next to the chat, in the simulator, or on a real phone.`})}),_jsx(Accordion,{title:`Does it work in a web app too?`,id:`does-it-work-in-a-web-app-too`,children:_jsxs(_components.p,{children:[`Yes. In a web app the sign-in happens in the browser and the session lives in `,_jsx(_components.code,{children:`localStorage`}),`. One project can hold an iPhone app, an Android app, and a web app, see `,_jsx(_components.a,{href:`/import/convert-between-platforms`,children:`Convert your app between iOS, Android, and web`}),`.`]})}),_jsx(Accordion,{title:`Can I use Rork Cloud with accounts?`,id:`can-i-use-rork-cloud-with-accounts`,children:_jsxs(_components.p,{children:[`Yes. Add sign-in the same way, then keep each person’s rows behind the rules above. See `,_jsx(_components.a,{href:`/backend/rork-cloud`,children:`What is Rork Cloud`}),`.`]})}),_jsx(Accordion,{title:`A signed-in person sees empty screens. What is wrong?`,id:`a-signed-in-person-sees-empty-screens-what-is-wrong`,children:_jsx(_components.p,{children:`Almost always the data rules name the wrong kind of user, so every row is filtered out. Ask the agent to check the rules against the project’s sign-in model.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{icon:`database`,href:`/backend/index`,title:`Do you need a backend?`,children:_jsx(_components.p,{children:`What accounts imply for your data, before you build.`})}),_jsx(Card,{icon:`cloud`,href:`/backend/rork-cloud`,title:`Rork Cloud`,children:_jsx(_components.p,{children:`A managed database and server functions inside Rork.`})}),_jsx(Card,{icon:`table`,href:`/backend/supabase`,title:`Supabase backend`,children:_jsx(_components.p,{children:`Bring your own Supabase project, and its sign-in methods.`})}),_jsx(Card,{icon:`shield-check`,href:`/ai-app-store-reviewer`,title:`AI App Store Reviewer`,children:_jsx(_components.p,{children:`Catch the Sign in with Apple mistakes before Apple does.`})})]}),`\n`,_jsx(_MdxComponentBoundary,{name:`CtaBanner`,children:_jsx(CtaBanner,{})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{__snippet_tagCtaLink_3acd3r,CtaBanner,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Add accounts and sign-in to your app","sidebarTitle":"Accounts and sign-in","description":"Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.","keywords":["add login to app","sign in with google","sign in with apple","rork auth","supabase auth email password","user accounts app builder","authentication no code"],"href":"/integrations/backend/how-to-set-up-oauth"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[162,1415,"()=>null;const CtaBanner=()=>null;functi"]]},"mdxExtracts":{"tableOfContents":[{"title":"Add Google and Apple sign-in","slug":"add-google-and-apple-sign-in","depth":2,"children":[{"title":"Three Apple rules that are easy to break","slug":"three-apple-rules-that-are-easy-to-break","depth":3,"children":[]},{"title":"What Rork Auth cannot do","slug":"what-rork-auth-cannot-do","depth":3,"children":[]},{"title":"The variables it adds","slug":"the-variables-it-adds","depth":3,"children":[]}]},{"title":"Email and password with Supabase Auth","slug":"email-and-password-with-supabase-auth","depth":2,"children":[]},{"title":"Why each person sees only their own data","slug":"why-each-person-sees-only-their-own-data","depth":2,"children":[]},{"title":"Change your mind later","slug":"change-your-mind-later","depth":2,"children":[]},{"title":"FAQ","slug":"faq","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"rork","siteName":"Rork","title":"Add accounts and sign-in to your app - Rork","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-17T01:10:45.591Z","originalFileLocation":"integrations/backend/how-to-set-up-oauth.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Rork\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Add accounts and sign-in to your app - Rork\">\u003cmeta data-mint-head property=\"og:description\" content=\"Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Rork\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rork.mintlify.site/_mintlify/api/og/v2?division=Backend\u0026amp;title=Add+accounts+and+sign-in+to+your+app\u0026amp;description=Rork+Auth+adds+Google+and+Apple+sign-in+with+no+setup+and+no+backend.+Supabase+Auth+covers+email+and+password%2C+magic+links%2C+and+phone+codes.+This+page+explains+\u0026amp;theme=f68352a07940af373749b751\u0026amp;signature=91ae6fc14974f7c8c94d1c121134b7342e1ed1ab83dacb1db96c947b23781233\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Add accounts and sign-in to your app - Rork\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rork.mintlify.site/_mintlify/api/og/v2?division=Backend\u0026amp;title=Add+accounts+and+sign-in+to+your+app\u0026amp;description=Rork+Auth+adds+Google+and+Apple+sign-in+with+no+setup+and+no+backend.+Supabase+Auth+covers+email+and+password%2C+magic+links%2C+and+phone+codes.+This+page+explains+\u0026amp;theme=f68352a07940af373749b751\u0026amp;signature=91ae6fc14974f7c8c94d1c121134b7342e1ed1ab83dacb1db96c947b23781233\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Rork\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#171717\">\u003cmeta data-mint-head name=\"msvalidate.01\" content=\"670B347F489FB0E01541E84B795B596E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/backend/how-to-set-up-oauth.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.rork.com/#organization\",\"name\":\"Rork\",\"url\":\"https://docs.rork.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rork/eYyf6ge21iySMGg9/logo/light.svg?fit=max\u0026auto=format\u0026n=eYyf6ge21iySMGg9\u0026q=85\u0026s=0c489dc21f64b4a7cdac60383bfffe89\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.rork.com#website\",\"name\":\"Rork\",\"url\":\"https://docs.rork.com\",\"publisher\":{\"@id\":\"https://docs.rork.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth#webpage\",\"url\":\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth\",\"name\":\"Add accounts and sign-in to your app\",\"description\":\"Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.\",\"dateModified\":\"2026-11-17T01:10:45.591Z\",\"isPartOf\":{\"@id\":\"https://docs.rork.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Backend\",\"item\":\"https://docs.rork.com/backend\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add accounts and sign-in to your app\",\"item\":\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth#article\",\"headline\":\"Add accounts and sign-in to your app\",\"name\":\"Add accounts and sign-in to your app\",\"description\":\"Rork Auth adds Google and Apple sign-in with no setup and no backend. Supabase Auth covers email and password, magic links, and phone codes. This page explains which one to pick, and why a project uses only one.\",\"url\":\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth\",\"mainEntityOfPage\":{\"@id\":\"https://docs.rork.com/integrations/backend/how-to-set-up-oauth#webpage\"},\"dateModified\":\"2026-11-17T01:10:45.591Z\",\"keywords\":\"add login to app, sign in with google, sign in with apple, rork auth, supabase auth email password, user accounts app builder, authentication no code\",\"publisher\":{\"@id\":\"https://docs.rork.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.rork.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Rork\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Rork\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/integrations/backend/how-to-set-up-oauth.md","siteName":"Rork","nav":{"global":{"anchors":[{"anchor":"Discord Community","icon":"discord","href":"https://discord.gg/rxBHytVKaT"},{"anchor":"Blog","icon":"newspaper","href":"https://rork.com/blog"},{"anchor":"Guides","icon":"compass","href":"https://rork.com/guides"}]},"pages":[{"group":"Getting started","icon":"rocket","pages":[{"title":"Welcome","href":"/index"},{"title":"How to tell if your app idea is good","href":"/elements-of-a-good-idea/how-to-tell-if-your-idea-is-good"},{"title":"How to build your first app","href":"/introduction/build-your-first-app"},{"title":"How to prompt succesfully","href":"/introduction/introduction/prompting-strategy"}]},{"group":"Choosing a platform","icon":"compass","pages":[{"title":"Swift vs React Native: iPhone, Android, or web","sidebarTitle":"iPhone, Android, or web: what's the difference","href":"/swift-vs-react-native/whats-the-difference"},{"title":"Build a native iPhone app with Rork","sidebarTitle":"iPhone apps","href":"/iphone/rork-iphone"},{"title":"Build a native Android app with Rork","sidebarTitle":"Android apps","href":"/android/rork-android"},{"title":"Rork Web: build and publish a web app","sidebarTitle":"Web apps","href":"/web/rork-web"},{"title":"What happened to Expo?","href":"/expo"}]},{"group":"Import your project","icon":"download","pages":[{"title":"Convert your Lovable app to a mobile app","href":"/import/lovable-to-mobile-app"},{"title":"Import a GitHub repository into Rork","href":"/import/import-from-github"},{"title":"Move your project from any app builder to Rork","href":"/import/import-from-any-app-builder"},{"title":"Turn your website into a mobile app","href":"/import/website-to-mobile-app"},{"title":"Convert your app between iOS, Android, and web","href":"/import/convert-between-platforms"}]},{"group":"Build","icon":"sparkles","pages":[{"group":"Edit your app","pages":[{"title":"How the Rork agent works: Build, Plan, and Design modes","sidebarTitle":"How the agent works","href":"/features/agent-modes"},{"title":"Plan mode: see the whole app before you build","sidebarTitle":"Plan mode","href":"/features/plan-mode"},{"title":"Design mode: design a mobile app with AI","sidebarTitle":"Design mode","href":"/features/design-mode"},{"title":"Element Selection","sidebarTitle":"Element Selection","href":"/features/element-selection"},{"title":"Undo a change and go back a version","sidebarTitle":"Undo and history","href":"/features/undo-and-history"}]},{"group":"Media","pages":[{"title":"Images, video, audio, and 3D models","sidebarTitle":"Assets and AI media","href":"/features/assets"},{"title":"Image Generation","href":"/features/imagegeneration"}]},{"group":"APIs and integrations","pages":[{"title":"What is an API?","href":"/features/index"},{"title":"Connecting an API to Rork","href":"/features-apis/apis/how-to-connect-an-api-to-your-project"},{"title":"API keys and environment variables","sidebarTitle":"Keys and secrets","href":"/features/secrets"},{"title":"Connect MCP servers to Rork","sidebarTitle":"MCP servers","href":"/features/mcp"}]},{"group":"Project tools","pages":[{"title":"Share a project and work together","sidebarTitle":"Share and collaborate","href":"/collaborate/share-a-project"},{"title":"How to sync your project with Github","href":"/tutorials/how-to-connect-github"},{"title":"Open your project in Xcode","sidebarTitle":"Xcode (optional)","href":"/how-to-set-up-xcode/how-to-set-up-xcoe"},{"title":"Project analytics and revenue","sidebarTitle":"Analytics","href":"/features/analytics"}]},{"group":"Examples and tutorials","pages":[{"title":"Build a game with Rork","sidebarTitle":"Games","href":"/games/build-a-game"},{"title":"NanoBanana AI Image App Tutorial","href":"/quick-start-examples/nano-banana-image-app"}]}]},{"group":"Backend","icon":"database","pages":[{"title":"Do You Need a Backend for Your App?","href":"/backend/index"},{"title":"What is Rork Cloud","description":"Why use Rork's built-in backend instead of setting up your own, what it costs, and what to expect.","href":"/backend/rork-cloud"},{"title":"Add accounts and sign-in to your app","sidebarTitle":"Accounts and sign-in","href":"/integrations/backend/how-to-set-up-oauth"},{"description":"Rork provides an optional backend infrastructure for applications requiring server-side functionality. Currently in its beta phase, if you run into any issues, please reach out to Support.","title":"What is Rork's Backend Capabilities?","href":"/building-complex-apps/backend/what-is-rork-toolkit"},{"title":"How to add a Supabase backend to Rork","href":"/backend/supabase"},{"title":"How to add a Firebase backend to Rork","href":"/backend/firebase"}]},{"group":"Preview and test","icon":"play","pages":[{"title":"Rork simulator","sidebarTitle":"Rork simulator","href":"/features/simulator"},{"group":"On your device","pages":[{"title":"Rork Max app for iPhone","href":"/rork-max/rork-max-app"},{"title":"Rork Companion for Windows and Mac","sidebarTitle":"Rork Companion","href":"/rork-max-swift"}]},{"group":"Fix problems","pages":[{"title":"Read the code and read the logs","sidebarTitle":"Code and logs","href":"/features/code-and-logs"},{"title":"How to get out of an error loop","href":"/introduction/introduction/agent-loops"}]}]},{"group":"Publishing","icon":"upload","pages":[{"title":"Publish your app","sidebarTitle":"Publishing overview","href":"/introduction/deploy-your-app"},{"group":"App Store","pages":[{"title":"Create your Apple Developer Account to publish to App Store","href":"/store-guides/apple-developer-account"},{"title":"Publish Your App to the Apple App Store","href":"/store-guides/publish-app-store"},{"title":"Publishing","href":"/publishing"},{"title":"TestFlight: put your app on real phones","sidebarTitle":"TestFlight and testers","href":"/store-guides/testflight-beta-testers"},{"title":"Submission errors","href":"/submitting-to-app-store/apple/submission-errors"},{"title":"App Store Checklist","href":"/submitting-to-app-store/apple/app-store-checklist"},{"title":"App Store screenshots","href":"/appstore-screenshots/app-store-screenshots"},{"title":"Screenshot Studio: App Store screenshots in a minute","sidebarTitle":"Screenshot Studio","href":"/store-guides/screenshot-studio"},{"title":"AI App Store Reviewer","href":"/ai-app-store-reviewer"},{"title":"App Review guide","href":"/appstore-submission-checklist/app-review-guide"},{"title":"Main App Store rejection reasons","href":"/appstore-submission-checklist/whats-next-after-the-apps-finished"},{"title":"Reply to App Store reviews","sidebarTitle":"Customer reviews","href":"/store-guides/app-store-reviews"}]},{"group":"Play Store","pages":[{"title":"Create your Google Play developer account","sidebarTitle":"Google Play account","href":"/store-guides/google-play-developer-account"},{"title":"How to test Android apps on your Android device","href":"/submitting-to-play-store/apk-file"},{"title":"How to publish your Rork app to Google Play Store","href":"/submitting-to-play-store/creating-the-aab-file"}]},{"group":"Web","pages":[{"title":"Custom domains: put your Rork web app on your own domain","sidebarTitle":"Custom domains","href":"/web/custom-domains"}]}]},{"group":"Monetization","icon":"dollar-sign","pages":[{"title":"How to add a paywall to your Rork app with RevenueCat","href":"/payment-guides/revenuecat-copied-1"},{"title":"How to add a Free Trial","href":"/make-your-app-profitable/paywalls/how-to-add-a-free-trial"},{"title":"How To Create a privacy policy, Terms and conditions, and EULA","href":"/make-your-app-profitable/paywalls/how-to-set-up-your-policies"}]},{"group":"Marketing","icon":"megaphone","pages":[{"title":"Ideation","href":"/rork-playbook/playbook"},{"title":"Posting Organic Content","href":"/rork-playbook/untitled-page"},{"title":"Winning influencer creatives","href":"/rork-playbook/untitled-page-1"},{"title":"Finding Influencers and negotiating with them","href":"/rork-playbook/untitled-page-2"},{"title":"Onboarding and Monetization","href":"/rork-playbook/untitled-page-3"},{"title":"Helpful Resources","href":"/rork-playbook/untitled-page-4"},{"title":"How to Scale Your Mobile App to $50k+/Month (The Complete Guide)","sidebarTitle":"Scale to $50k+/month","href":"/rork-playbook/scale-to-50k-month"},{"title":"The 7 Ways to Scale Your App","sidebarTitle":"7 ways to scale","href":"/rork-playbook/seven-ways-to-scale-your-app"}]},{"group":"Billing","icon":"credit-card","pages":[{"title":"Rork pricing and plans: is Rork free?","sidebarTitle":"Plans \u0026 Subscriptions","href":"/introduction/subscriptions"},{"title":"How credits work","href":"/billing/credits"}]},{"group":"Frequently Asked Questions","icon":"circle-help","pages":[{"title":"Overview","href":"/faq/index"},{"title":"General","href":"/faq/general"},{"title":"Technical","href":"/faq/technical"},{"title":"Integrations","href":"/faq/integrations"},{"title":"Publishing","href":"/faq/publishing"},{"title":"Code Export","href":"/faq/code-export"},{"title":"Collaboration","href":"/faq/collaboration"},{"title":"Billing","href":"/faq/billing"},{"title":"Support","href":"/faq/support"}]},{"title":"Request Documentation","sidebarTitle":"Request more Information","href":"/request-documentation"}]},"basePath":"","title":"Add accounts and sign-in to your app - Rork","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}