Skip to content

Commit f5ae27f

Browse files
chore: version packages (#15)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2408953 commit f5ae27f

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

.changeset/custom-code-exchange.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/nylas-connect/CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# @nylas/connect
22

3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- 2408953: Add custom code exchange functionality for enhanced security.
8+
9+
### Usage
10+
11+
```typescript
12+
// Handle code exchange on your backend
13+
const nylasConnect = new NylasConnect({
14+
clientId: "your-client-id",
15+
redirectUri: "http://localhost:3000/callback",
16+
codeExchange: async (params) => {
17+
const response = await fetch("/api/auth/exchange", {
18+
method: "POST",
19+
body: JSON.stringify(params),
20+
});
21+
return await response.json();
22+
},
23+
});
24+
25+
// Use normally - custom exchange is called automatically
26+
const result = await nylasConnect.connect({ method: "popup" });
27+
```
28+
329
## 0.1.0
430

531
### Minor Changes

packages/nylas-connect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nylas/connect",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "Modern, lightweight Nylas connection library with PKCE support",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)