Skip to content

The sovereign interoperability layer

Soil

Who you are and what you may open. One account and one sign-in for every OnlyJah site and app, and for any site that adds Sign in with OnlyJah.

Soil runs on its own, at soil.onlyjah.com. Today that is where your account lives. It grows into an app you open inside OnlyJah, the way Forge is.

Soil · Forge · Kash

Soil is one of the three services Ark is built on, each with its own API. The Trinity shows how they join.

For you

One human, many access points

Every email you confirm signs you in, and none can belong to anyone else. Codes by email, a password, or a passkey.

Passkeys, your way

Your device’s own lock is enough: its PIN, passcode or pattern. Face or fingerprint only if you choose.

Pods, and switching

A pod is a person in the legal sense: alias, company, trust, DBA, page. One human or many. You act as one at a time, with the same sign-in.

Two-step sign-in

An authenticator app after your password, with backup codes.

Badges

A standing on OnlyJah, given to an address. Some carry discounts: legacy conspirators get Forge free.

Your stream

Your name at onlyjah.com/name, and the accounts you link to it, live in Soil.

For sites

Soil is a sign-in service any site can use, the way sites use Clerk or a hosted Better Auth. OnlyJah’s own sites use it the same way everyone else does.

Sign in with OnlyJah

OAuth 2.1 and OpenID Connect, with PKCE. Any site, server or app can use it.

Every site asks first

People see what a site wants before it sees them. OnlyJah’s own sites ask too.

An id made only for your site

Each site gets its own id for a person, so sites can’t match people up between them.

Contexts are yours to show

Soil says which pods a person acts for. Your site decides how switching looks.

With the SDK

import { createOnlyJah } from '@onlyjah/sdk/signin'

const oj = createOnlyJah({
  soilUrl: 'https://soil.onlyjah.com',
  clientId, redirectUri, // PKCE: no secret needed
  // clientSecret: only on a server, never in a browser or an app
  scopes: ['openid', 'profile', 'email', 'pods'],
})
const { url, pending } = await oj.signInUrl()   // send them to url
const { tokens } = await oj.handleCallback(callbackUrl, pending)
const me = await oj.userinfo(tokens.accessToken) // me.pods, me.badges

Scopes

openid
that it is the same person, by an id made for your site
profile
name, picture, badges and discounts
email
their email address
offline_access
keep them signed in
pods
the pods they act for

Endpoints

GET  /.well-known/openid-configuration
GET  /api/auth/oauth2/authorize · POST /api/auth/oauth2/token
GET  /api/auth/oauth2/userinfo
GET  /api/auth/jwks
GET  /api/auth/contexts · POST /api/auth/contexts/act
GET  /api/auth/stream/profile?username=

At soil.onlyjah.com. Code: onlyjah/soil, in auth/ and clients/sdk/.