internal

Mint a US staff Bearer (service secret)

US-only in stg/prod. Bearer STAFF_REGION_TOKEN_SECRET (not the allocate secret). Upserts user + staff roles from Canada's current privileges at the given user.id and mints oauth2_token. Canada calls this after validating the Canada session.

post/internal/mint-staff-token

Request body

chef_display_namestring nullable required
country_of_residencestring nullable required
emailstring email required
first_namestring required
is_activeboolean required
is_chefboolean required
is_data_reviewerboolean required
last_namestring required
meal_adminboolean required
review_levelstring nullable required
user_idinteger required

Response

minted US Bearer

access_tokenstring required
expires_ininteger required
region'us' required
token_typestring required
user_idinteger required

Changes