@newskit-render/auth 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +6 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,10 +71,15 @@ Create the route and pass your Okta credentials:
71
71
  ```
72
72
  import createAuthRoute from '@newskit-render/auth/providers'
73
73
  import { NextApiRequest, NextApiResponse } from 'next'
74
+
74
75
  const { OKTA_CLIENT_ID, OKTA_CLIENT_SECRET, OKTA_DOMAIN } = process.env
75
76
 
76
77
  export default (req: NextApiRequest, res: NextApiResponse) =>
77
- createAuthRoute(req, res, { OKTA_CLIENT_ID, OKTA_CLIENT_SECRET, OKTA_DOMAIN })
78
+ createAuthRoute(req, res, {
79
+ clientId: OKTA_CLIENT_ID,
80
+ clientSecret: OKTA_CLIENT_SECRET,
81
+ issuer: OKTA_DOMAIN,
82
+ })
78
83
 
79
84
  ```
80
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/auth",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Newskit Render",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",