generateAuthToken

suspend fun generateAuthToken(endpoint: Url, region: String, username: String, expiration: Duration = 900.seconds): String

Generates an auth token for the connect action.

Parameters

endpoint

the endpoint of the database

region

the region of the database

username

the username to authenticate with

expiration

how long the auth token should be valid for. Defaults to 900.seconds