Skip to content

Commit

Permalink
Fix bug with redirect URI (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAsjes authored Oct 15, 2024
1 parent 37503f3 commit 8673f47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workos-inc/authkit-nextjs",
"version": "0.12.2",
"version": "0.12.3",
"description": "Authentication and session helpers for using WorkOS & AuthKit with Next.js",
"sideEffects": false,
"type": "module",
Expand All @@ -21,7 +21,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@workos-inc/node": "7.27.4",
"@workos-inc/node": "^7.27.5",
"iron-session": "^8.0.1",
"jose": "^5.2.3",
"path-to-regexp": "^6.2.2"
Expand Down
3 changes: 2 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { NextMiddleware } from 'next/server';
import { updateSession } from './session.js';
import { AuthkitMiddlewareOptions } from './interfaces.js';
import { WORKOS_REDIRECT_URI } from './env-variables.js';

export function authkitMiddleware({
debug = false,
middlewareAuth = { enabled: false, unauthenticatedPaths: [] },
redirectUri = '',
redirectUri = WORKOS_REDIRECT_URI,
}: AuthkitMiddlewareOptions = {}): NextMiddleware {
return function (request) {
return updateSession(request, debug, middlewareAuth, redirectUri);
Expand Down
2 changes: 1 addition & 1 deletion src/workos.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { WorkOS } from '@workos-inc/node';
import { WORKOS_API_HOSTNAME, WORKOS_API_KEY, WORKOS_API_HTTPS, WORKOS_API_PORT } from './env-variables.js';

export const VERSION = '0.12.2';
export const VERSION = '0.12.3';

const options = {
apiHostname: WORKOS_API_HOSTNAME,
Expand Down

0 comments on commit 8673f47

Please sign in to comment.