(account: Account)
| 331 | * @returns A base-64 encoded UUID string. |
| 332 | */ |
| 333 | export function getAccountUUID(account: Account): AccountUUID { |
| 334 | return btoa( |
| 335 | `${account.hostname}-${account.user?.id}-${account.method}`, |
| 336 | ) as AccountUUID; |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Return the primary (first) account hostname, or the default GitHub.com hostname |
no outgoing calls
no test coverage detected