naystack 1.8.5 → 1.8.7

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.
@@ -613,7 +613,7 @@ async function getLongLivedToken(code, redirectURL, clientId, clientSecret) {
613
613
  }
614
614
  }
615
615
  }
616
- var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize?client_id=${getEnv(
616
+ var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize/?client_id=${getEnv(
617
617
  "INSTAGRAM_CLIENT_ID" /* INSTAGRAM_CLIENT_ID */
618
618
  )}&response_type=code&enable_fb_login=0&force_authentication=1&scope=instagram_business_basic&state=${token}&redirect_uri=${getEnv("NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT" /* NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT */)}`;
619
619
 
@@ -571,7 +571,7 @@ async function getLongLivedToken(code, redirectURL, clientId, clientSecret) {
571
571
  }
572
572
  }
573
573
  }
574
- var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize?client_id=${getEnv(
574
+ var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize/?client_id=${getEnv(
575
575
  "INSTAGRAM_CLIENT_ID" /* INSTAGRAM_CLIENT_ID */
576
576
  )}&response_type=code&enable_fb_login=0&force_authentication=1&scope=instagram_business_basic&state=${token}&redirect_uri=${getEnv("NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT" /* NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT */)}`;
577
577
 
@@ -136,7 +136,7 @@ async function getLongLivedToken(code, redirectURL, clientId, clientSecret) {
136
136
  }
137
137
  }
138
138
  }
139
- var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize?client_id=${getEnv(
139
+ var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize/?client_id=${getEnv(
140
140
  "INSTAGRAM_CLIENT_ID" /* INSTAGRAM_CLIENT_ID */
141
141
  )}&response_type=code&enable_fb_login=0&force_authentication=1&scope=instagram_business_basic&state=${token}&redirect_uri=${getEnv("NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT" /* NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT */)}`;
142
142
 
@@ -22,7 +22,8 @@ interface SetupInstagramAuthOptions {
22
22
  * Mount the GET handler on your Instagram auth route (e.g. `app/api/(auth)/instagram/route.ts`).
23
23
  *
24
24
  * The single GET handler serves both the OAuth callback (`?code`) and the connect
25
- * entry point (`?state` with no code → server 302 to Instagram's authorize URL).
25
+ * entry point (`?state` with no code → 302 to Instagram's authorize URL; see
26
+ * {@link getInstagramAuthorizationURL} for why that URL is spelled the way it is).
26
27
  *
27
28
  * Requires env vars: `INSTAGRAM_CLIENT_ID` (server-only), `INSTAGRAM_CLIENT_SECRET`, `NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT`.
28
29
  *
@@ -22,7 +22,8 @@ interface SetupInstagramAuthOptions {
22
22
  * Mount the GET handler on your Instagram auth route (e.g. `app/api/(auth)/instagram/route.ts`).
23
23
  *
24
24
  * The single GET handler serves both the OAuth callback (`?code`) and the connect
25
- * entry point (`?state` with no code → server 302 to Instagram's authorize URL).
25
+ * entry point (`?state` with no code → 302 to Instagram's authorize URL; see
26
+ * {@link getInstagramAuthorizationURL} for why that URL is spelled the way it is).
26
27
  *
27
28
  * Requires env vars: `INSTAGRAM_CLIENT_ID` (server-only), `INSTAGRAM_CLIENT_SECRET`, `NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT`.
28
29
  *
@@ -108,7 +108,7 @@ async function getLongLivedToken(code, redirectURL, clientId, clientSecret) {
108
108
  }
109
109
  }
110
110
  }
111
- var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize?client_id=${getEnv(
111
+ var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize/?client_id=${getEnv(
112
112
  "INSTAGRAM_CLIENT_ID" /* INSTAGRAM_CLIENT_ID */
113
113
  )}&response_type=code&enable_fb_login=0&force_authentication=1&scope=instagram_business_basic&state=${token}&redirect_uri=${getEnv("NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT" /* NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT */)}`;
114
114
 
@@ -125,7 +125,7 @@ async function getLongLivedToken(code, redirectURL, clientId, clientSecret) {
125
125
  }
126
126
  }
127
127
  }
128
- var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize?client_id=${getEnv(
128
+ var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize/?client_id=${getEnv(
129
129
  "INSTAGRAM_CLIENT_ID" /* INSTAGRAM_CLIENT_ID */
130
130
  )}&response_type=code&enable_fb_login=0&force_authentication=1&scope=instagram_business_basic&state=${token}&redirect_uri=${getEnv("NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT" /* NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT */)}`;
131
131
 
@@ -101,7 +101,7 @@ async function getLongLivedToken(code, redirectURL, clientId, clientSecret) {
101
101
  }
102
102
  }
103
103
  }
104
- var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize?client_id=${getEnv(
104
+ var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize/?client_id=${getEnv(
105
105
  "INSTAGRAM_CLIENT_ID" /* INSTAGRAM_CLIENT_ID */
106
106
  )}&response_type=code&enable_fb_login=0&force_authentication=1&scope=instagram_business_basic&state=${token}&redirect_uri=${getEnv("NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT" /* NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT */)}`;
107
107
 
@@ -112,7 +112,7 @@ async function getLongLivedToken(code, redirectURL, clientId, clientSecret) {
112
112
  }
113
113
  }
114
114
  }
115
- var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize?client_id=${getEnv(
115
+ var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize/?client_id=${getEnv(
116
116
  "INSTAGRAM_CLIENT_ID" /* INSTAGRAM_CLIENT_ID */
117
117
  )}&response_type=code&enable_fb_login=0&force_authentication=1&scope=instagram_business_basic&state=${token}&redirect_uri=${getEnv("NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT" /* NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT */)}`;
118
118
  // Annotate the CommonJS export names for ESM import in node:
@@ -84,7 +84,7 @@ async function getLongLivedToken(code, redirectURL, clientId, clientSecret) {
84
84
  }
85
85
  }
86
86
  }
87
- var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize?client_id=${getEnv(
87
+ var getInstagramAuthorizationURL = (token) => `https://www.instagram.com/oauth/authorize/?client_id=${getEnv(
88
88
  "INSTAGRAM_CLIENT_ID" /* INSTAGRAM_CLIENT_ID */
89
89
  )}&response_type=code&enable_fb_login=0&force_authentication=1&scope=instagram_business_basic&state=${token}&redirect_uri=${getEnv("NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT" /* NEXT_PUBLIC_INSTAGRAM_AUTH_ENDPOINT */)}`;
90
90
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.8.5",
3
+ "version": "1.8.7",
4
4
  "description": "A stack built with Next + GraphQL + S3 + Auth",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",