Which kind is your app?
Each quickstart connects one kind of app to Otoko Identity (OI) from start to finish: the console steps, the packages, where each file goes in your framework, the code, and how to check it works. Pick yours with two questions. Where do people sign in: in the browser, on pages your server renders, in a phone app, or nowhere, as nobody signs in? And does OI need to call an API of yours, your backend, to ask whether someone may sign in and to say when a session ends?
For a new web app, sign in from your server when it has one, as the two server quickstarts do: the tokens stay on the server, and the browser gets only a session cookie. Sign in from the browser only when the app is static files. See Which kind of app?
Browser app
A single-page app (React, Vue, Angular) with no server of its own. In Connect an app: No API that OI calls · Web app, no server code at sign-in.
Server-rendered app
A website whose server renders the pages, which only needs people signed in. In Connect an app: No API that OI calls · Web app, server code at sign-in.
Browser app + API
A single-page app that calls an API of yours on another address. In Connect an app: An API that OI calls · Web app, no server code at sign-in.
Server-rendered app + API
A full-stack app whose server renders the pages and is also the backend OI calls. In Connect an app: An API that OI calls · Web app, server code at sign-in.
Mobile app
A phone app (React Native, Flutter) that signs people in through your backend. In Connect an app: An API that OI calls · Mobile app.
Background jobs and services
A service that calls another service on its own, with nobody signed in. In Connect an app: A client with Client credentials scopes, in any app.
One app, several clients. An app in OI is one set of people. A website and a phone app that share their people are one app with two clients: a browser or server client for the website, and a mobile client for the phone app, each with its own client ID. Follow the quickstart for each part, and add the second client on the app's Clients tab. An app with a mobile client needs a backend, as the phone app signs in through it, and that backend lists every client ID in IDENTITY_ALLOWED_CLIENT_IDS, so it accepts the tokens of both.