IssueUserTokenOptions
@coinbase/waas-server-auth • API
Type alias: IssueUserTokenOptions
IssueUserTokenOptions:
Object
Type declaration
apiKeyName
apiKeyName:
string
The name of the CDP API key that we're using to generate auth tokens.
See your downloaded .json
file for this, under "name".
privateKey
privateKey:
string
The private key of the CDP API key. See your downloaded .json
file for this,
under "private_key".
ttlSeconds?
optional
ttlSeconds:number
The time to live for the token, in seconds. Maximum is 900 seconds (15 minutes).
userID
userID:
string
The ID of the user in your system to scope the token to.
Note: This must be a UUID.
If the user ID in your system is not a UUID, you should either generate and store a UUID for each user or deterministically create a UUID using your current user ID.