If you use Cursor, Claude Code, GitHub Copilot, Windsurf or ChatGPT, you do not have to read the rest of these docs first. The prompt below contains the entire integration contract — endpoints, fields, security rules and failure cases — so your assistant can find every place your project sends its own OTP and convert it to Authentica.
1

Get your credentials

Create the app at https://authentica-merge.t2.sa/integrate and copy your client_id, secret and Return URL. Walkthrough: Get your credentials.
2

Fill in the four values

Replace the placeholders at the top of the prompt. Everything below them is already complete.
3

Paste it into your assistant

Open it with your repository as context, so it can actually see your existing OTP code.
4

Review the diff

Treat the output as a pull request, not as truth. The review prompt below is the second half of the job.
Put your secret in the prompt only if you trust the assistant with it. Otherwise leave YOUR_SECRET as-is and tell it to read the value from an environment variable — the prompt already instructs it to do that.

The migration prompt


The review prompt

Run this in the same session after the migration, before you merge anything. It makes the assistant check its own output against the rules it was given.

What the assistant still cannot do for you

If the output looks wrong

The prompt is self-contained, but an assistant working without repository context will guess. Check the generated code against the source of truth here:
If your assistant produces code that calls POST /introspect, reads an assertion from the return URL, or registers a redirectUri, it has guessed a shape this API does not have. None of those exist here — delete them and follow the flow above.