* Builds the authorization headers for a Granola API request.
(accessToken: string)
| 83 | * Builds the authorization headers for a Granola API request. |
| 84 | */ |
| 85 | function granolaHeaders(accessToken: string): Record<string, string> { |
| 86 | return { |
| 87 | Authorization: `Bearer ${accessToken}`, |
| 88 | 'Content-Type': 'application/json', |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Produces the change-detection hash for a note from its stable identifiers. |