@propelauth/nextjs 0.0.70 → 0.0.71

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +10 -4
  2. package/package.json +1 -1
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 env variables for your application in the PropelAuth Dashboard under **Backend Integration**.
27
- For the PROPELAUTH_REDIRECT_URI, you should use `{YOUR_URL}/api/auth/callback`.
28
- For example, if your application is hosted at `https://myapp.com`, then your PROPELAUTH_REDIRECT_URI would be `https://myapp.com/api/auth/callback`.
29
- Make sure to set this in the **Frontend Integration** section of your dashboard.
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.70",
3
+ "version": "0.0.71",
4
4
  "exports": {
5
5
  "./server": {
6
6
  "browser": "./dist/server/index.mjs",