Skip to main content

auth_signing_keys

Creates, updates, deletes, gets or lists an auth_signing_keys resource.

Overview​

Nameauth_signing_keys
TypeResource
Idsupabase.config.auth_signing_keys

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uuid) (pattern: <code>^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$</code>)
algorithmstring (EdDSA, ES256, RS256, HS256)
created_atstring (date-time) (pattern: <code>^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:.\d+)?)?(?:Z))$</code>)
public_jwk
statusstring (in_use, previously_used, revoked, standby)
updated_atstring (date-time) (pattern: <code>^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:.\d+)?)?(?:Z))$</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, ref
listselectref
createinsertref, algorithm
updateupdateid, ref, status
deletedeleteid, ref

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstring (uuid)
refstringSupabase project reference (the Project ID shown in the dashboard under Settings -> General; 20 lowercase letters). Resolved from the SUPABASE_PROJECT_ID environment variable when it is set (x-stackQL-envVar); otherwise it must be supplied on every project-scoped query as WHERE ref = '<ref>'. A WHERE value always takes precedence over the environment. (x-stackQL-envVar: SUPABASE_PROJECT_ID)

SELECT examples​

No description available.

SELECT
id,
algorithm,
created_at,
public_jwk,
status,
updated_at
FROM supabase.config.auth_signing_keys
WHERE id = '{{ id }}' -- required
AND ref = '{{ ref }}' -- required unless SUPABASE_PROJECT_ID is set
;

INSERT examples​

No description available.

INSERT INTO supabase.config.auth_signing_keys (
algorithm,
status,
private_jwk,
ref
)
SELECT
'{{ algorithm }}' /* required */,
'{{ status }}',
'{{ private_jwk }}',
'{{ ref }}'
RETURNING
id,
algorithm,
created_at,
public_jwk,
status,
updated_at
;

UPDATE examples​

No description available.

UPDATE supabase.config.auth_signing_keys
SET
status = '{{ status }}'
WHERE
id = '{{ id }}' --required
AND ref = '{{ ref }}' --required unless SUPABASE_PROJECT_ID is set
AND status = '{{ status }}' --required
RETURNING
id,
algorithm,
created_at,
public_jwk,
status,
updated_at;

DELETE examples​

No description available.

DELETE FROM supabase.config.auth_signing_keys
WHERE id = '{{ id }}' --required
AND ref = '{{ ref }}' --required unless SUPABASE_PROJECT_ID is set
;