Auth hooks

Store the signing secrets from Supabase, current and next

put/api/v1/auth-hooks/{hookId}/secrets

Request

  • Base URL: https://otprun.com
  • URL: https://otprun.com/api/v1/auth-hooks/{hookId}/secrets
  • Auth: HTTP bearer

Path parameters

hookIdstring required

Request body

currentstring required

Secret from Supabase, such as v1,whsec_...

nextstring

Second secret accepted during rotation, empty removes it

Response

OK

app_namestring required

Replaces {app} in the code text, empty means the project sender name

code_ttl_secondsinteger required

Code lifetime shown in the text, set it to the SMS OTP expiry in Supabase

created_atstring date-time required
enabledboolean required

A turned off hook answers Supabase with an error and sends no codes

has_next_secretboolean required
has_secretboolean required
idstring required

Public hook id, part of the hook URL

last_used_atstring date-time nullable required
localestring required

Language of the code text, empty means the project language

project_idstring required
provider'supabase' required
urlstring required

Paste this URL into Supabase: Authentication, Hooks, Send SMS hook, HTTPS

Changes

No recorded changes to this operation across all 1 revision of this API.