Create an OAuth client
1
Open your project's settings
In Uplink Console, go to Projects and select the settings icon on the project you want to create credentials for.
2
Open the OAuth clients dialog
In the OAuth Clients section, select Manage OAuth clients, then Create OAuth client.
3
Configure the client
Give the client a name that identifies where it runs — for example
CI pipeline or Checkout automation. Leave the token expiry fields at their defaults unless you have a reason to change them.4
Save your credentials
Select Create OAuth client. Console shows the client ID and client secret, then asks you to confirm you’ve stored them.
.env
Use the credentials
Pass your client ID and secret touplink.session() as the first argument:
uplink.getSession() and uplink.sessionDetails():
The SDK handles the token exchange for you. It requests an access token the first time you make a call, reuses it across subsequent calls, and requests a new one before the old one expires.
scope option that narrows what the resulting access token is allowed to do.
Reuse an access token
If you’d rather hold the access token yourself — to share it across processes, or to inspect it — mint one withuplink.token() and pass the result anywhere credentials are accepted:
Keep your client secret safe
Treat the client secret like a password. Read it from an environment variable or a secrets manager, and never commit it or expose it in client-side code.Next steps
Sessions
Create and manage sessions
Client API
Explore the Client API reference