mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Enforce 10-minute TTL for generated company invites
This commit is contained in:
parent
c3ac209e5f
commit
0f895a8cf9
6 changed files with 19 additions and 7 deletions
|
|
@ -160,7 +160,7 @@ if [[ -z "$COMPANY_ID" ]]; then
|
|||
fi
|
||||
|
||||
log "creating agent-only invite for company ${COMPANY_ID}"
|
||||
INVITE_PAYLOAD="$(jq -nc '{allowedJoinTypes:"agent",expiresInHours:24}')"
|
||||
INVITE_PAYLOAD="$(jq -nc '{allowedJoinTypes:"agent"}')"
|
||||
api_request "POST" "/companies/${COMPANY_ID}/invites" "$INVITE_PAYLOAD"
|
||||
if [[ "$RESPONSE_CODE" == "401" || "$RESPONSE_CODE" == "403" ]]; then
|
||||
fail_board_auth_required "Invite creation"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue