Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt

Use this file to discover all available pages before exploring further.

function getCurrentUserSync(): 
  | null
  | User;
Gets the currently signed-in user, if any.

Returns

| null | User The currently signed-in user, or null if no user is signed in.

Example

const user = getCurrentUserSync();