@propelauth/nextjs 0.0.70 → 0.0.72
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 +10 -4
- package/package.json +3 -3
package/README.md
CHANGED
@@ -23,10 +23,16 @@ You'll need to set the following .env variables in your Next.js application:
|
|
23
23
|
- PROPELAUTH_VERIFIER_KEY
|
24
24
|
- PROPELAUTH_REDIRECT_URI
|
25
25
|
|
26
|
-
You can find the
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
You can find the NEXT_PUBLIC_AUTH_URL, PROPELAUTH_API_KEY, and PROPELAUTH_VERIFIER_KEY variables for your application in the PropelAuth Dashboard under Backend Integration.
|
27
|
+
|
28
|
+
When you copy the PROPELAUTH_VERIFIER_KEY from the PropelAuth dashboard, it will automatically paste into your .env file with line breaks. However, due to the way some systems interpret multiline environment variables, you will need to edit the verifier key value to include ‘\n’ instead of newline characters. For example:
|
29
|
+
|
30
|
+
```
|
31
|
+
PROPELAUTH_VERIFIER_KEY=-----BEGIN PUBLIC KEY-----\nMIIBIjANBgk...
|
32
|
+
```
|
33
|
+
|
34
|
+
|
35
|
+
For the PROPELAUTH_REDIRECT_URI variable, you need to add /api/auth/callback to the end of one of your allowed frontend locations. So, for example, if you are developing in the test environment and using http://localhost:3000, you would use http://localhost:3000/api/auth/callback
|
30
36
|
|
31
37
|
### 1. Set up routes
|
32
38
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@propelauth/nextjs",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.72",
|
4
4
|
"exports": {
|
5
5
|
"./server": {
|
6
6
|
"browser": "./dist/server/index.mjs",
|
@@ -29,10 +29,10 @@
|
|
29
29
|
"./dist/server/index.d.ts"
|
30
30
|
],
|
31
31
|
"server/app-router": [
|
32
|
-
"./dist/server/app-router.d.ts"
|
32
|
+
"./dist/server/app-router/index.d.ts"
|
33
33
|
],
|
34
34
|
"server/pages": [
|
35
|
-
"./dist/server/pages.d.ts"
|
35
|
+
"./dist/server/pages/index.d.ts"
|
36
36
|
],
|
37
37
|
"client": [
|
38
38
|
"./dist/client/index.d.ts"
|