Documentation · API reference
GET
/api/v1/auth/secondWhat the second step's page shows
This page as Markdown, or in an AI chatMore ways to read this page
What the second step's page shows: who, how they came, and which ways.
# What the second step's page shows
> tidekeeper's API reference: https://tidekeeper.eu/docs/api/get-auth-second
`GET /api/v1/auth/second`
What the second step's page shows: who, how they came, and which ways.
## Parameters
- `token` (in path, needed)
## The answer
200, `SecondView`: Someone between their first way in and their second step: what its page shows (`/sign-in/second`).
- `app` (boolean, needed): The authenticator app is on.
- `brand` (string): The `brand` of that service, for its mark.
- `email` (string, needed)
- `first` (string, needed): `key` or `app`: which is shown first.
- `keys` (integer, needed): How many security keys they have.
- `via` (string, needed): The service they came by ("Google"), empty after a code or a password.
## Asking
```sh
curl https://tidekeeper.eu/api/v1/auth/second \
-H "Authorization: Bearer $TIDEKEEPER_TOKEN"
```
Parameters
- tokenin the address
- needed
The answer
Status 200
SecondView Someone between their first way in and their second step: what its page shows (`/sign-in/second`).
- app
- booleanneededThe authenticator app is on.
- brand
- stringThe `brand` of that service, for its mark.
- stringneeded
- first
- stringneeded`key` or `app`: which is shown first.
- keys
- integerneededHow many security keys they have.
- via
- stringneededThe service they came by ("Google"), empty after a code or a password.
Asking
curl https://tidekeeper.eu/api/v1/auth/second \ -H "Authorization: Bearer $TIDEKEEPER_TOKEN"
const answer = await fetch("https://tidekeeper.eu/api/v1/auth/second", { headers: { Authorization: `Bearer ${process.env.TIDEKEEPER_TOKEN}`, }, }).then((r) => r.json());