@airbolt/sdk
    Preparing search index...

    Function hasValidToken

    • Check if there's a valid authentication token for a specific baseURL

      Parameters

      • OptionalbaseURL: string

        The base URL for the API (defaults to localhost:3000)

      Returns boolean

      True if a valid token exists

      if (hasValidToken()) {
      console.log('User is authenticated');
      }