@edge-markets/connect-link 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,7 +29,7 @@ import { EdgeLink } from '@edge-markets/connect-link'
29
29
  // 1. Create instance (do this once)
30
30
  const link = new EdgeLink({
31
31
  clientId: 'your-client-id',
32
- environment: 'staging',
32
+ environment: 'sandbox',
33
33
  onSuccess: (result) => {
34
34
  // Send to your backend for token exchange
35
35
  fetch('/api/edge/exchange', {
@@ -86,7 +86,7 @@ button.onclick = () => {
86
86
  interface EdgeLinkConfig {
87
87
  // Required
88
88
  clientId: string // Your OAuth client ID
89
- environment: EdgeEnvironment // 'production' | 'staging' | 'sandbox'
89
+ environment: EdgeEnvironment // 'production' | 'sandbox'
90
90
  onSuccess: (result) => void // Called on successful auth
91
91
 
92
92
  // Optional
@@ -98,8 +98,8 @@ interface EdgeLinkConfig {
98
98
  }
99
99
  ```
100
100
 
101
- The SDK derives the hosted Link URL from `environment`; staging defaults to
102
- `https://oauth.staging-app.edgeboost.io/oauth/link`. `linkUrl` is only needed for
101
+ The SDK derives the hosted Link URL from `environment`; sandbox defaults to
102
+ `https://sandbox-oauth.staging-app.edgeboost.io/oauth/link`. `linkUrl` is only needed for
103
103
  nonstandard deployments. If provided as an origin, for example
104
104
  `https://oauth.example.com`, the SDK appends `/oauth/link`.
105
105
 
@@ -184,7 +184,7 @@ import { EdgeLink, EDGE_SCOPES } from '@edge-markets/connect-link'
184
184
 
185
185
  const link = new EdgeLink({
186
186
  clientId: 'your-client-id',
187
- environment: 'staging',
187
+ environment: 'sandbox',
188
188
  scopes: [
189
189
  EDGE_SCOPES.USER_READ, // Read profile
190
190
  EDGE_SCOPES.BALANCE_READ, // Read balance
@@ -204,7 +204,7 @@ import { useEdgeLink } from '@edge-markets/connect-link'
204
204
  function ConnectButton() {
205
205
  const { open, ready, isOpen, error } = useEdgeLink({
206
206
  clientId: process.env.NEXT_PUBLIC_EDGE_CLIENT_ID!,
207
- environment: 'staging',
207
+ environment: 'sandbox',
208
208
  onSuccess: async (result) => {
209
209
  await fetch('/api/edge/exchange', {
210
210
  method: 'POST',
@@ -254,7 +254,7 @@ function ConnectButton() {
254
254
  useEffect(() => {
255
255
  linkRef.current = new EdgeLink({
256
256
  clientId: process.env.NEXT_PUBLIC_EDGE_CLIENT_ID!,
257
- environment: 'staging',
257
+ environment: 'sandbox',
258
258
  onSuccess: async (result) => {
259
259
  await fetch('/api/edge/exchange', {
260
260
  method: 'POST',
package/dist/index.d.mts CHANGED
@@ -22,7 +22,7 @@ export { ACTIVE_EDGE_SCOPES, ALL_EDGE_SCOPES, EDGE_CONNECT_FEATURE_UNAVAILABLE_M
22
22
  *
23
23
  * const link = new EdgeLink({
24
24
  * clientId: 'your-client-id',
25
- * environment: 'staging',
25
+ * environment: 'sandbox',
26
26
  * onSuccess: (result) => {
27
27
  * // Send to your backend for token exchange
28
28
  * fetch('/api/edge/exchange', {
@@ -80,7 +80,7 @@ interface EdgeLinkOpenOptions {
80
80
  * // Create instance once
81
81
  * const link = new EdgeLink({
82
82
  * clientId: 'your-client-id',
83
- * environment: 'staging',
83
+ * environment: 'sandbox',
84
84
  * onSuccess: handleSuccess,
85
85
  * onExit: handleExit,
86
86
  * })
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export { ACTIVE_EDGE_SCOPES, ALL_EDGE_SCOPES, EDGE_CONNECT_FEATURE_UNAVAILABLE_M
22
22
  *
23
23
  * const link = new EdgeLink({
24
24
  * clientId: 'your-client-id',
25
- * environment: 'staging',
25
+ * environment: 'sandbox',
26
26
  * onSuccess: (result) => {
27
27
  * // Send to your backend for token exchange
28
28
  * fetch('/api/edge/exchange', {
@@ -80,7 +80,7 @@ interface EdgeLinkOpenOptions {
80
80
  * // Create instance once
81
81
  * const link = new EdgeLink({
82
82
  * clientId: 'your-client-id',
83
- * environment: 'staging',
83
+ * environment: 'sandbox',
84
84
  * onSuccess: handleSuccess,
85
85
  * onExit: handleExit,
86
86
  * })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edge-markets/connect-link",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Browser SDK for EDGE Connect popup authentication",
5
5
  "author": "EdgeBoost",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@edge-markets/connect": "^1.9.0"
24
+ "@edge-markets/connect": "^1.9.1"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=17.0.0"