Socket
Socket
Sign inDemoInstall

@workos-inc/authkit-nextjs

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workos-inc/authkit-nextjs - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

dist/cjs/actions.d.ts

3

dist/cjs/index.d.ts

@@ -6,2 +6,3 @@ import { handleAuth } from './authkit-callback-route.js';

import { Impersonation } from './impersonation.js';
export { handleAuth, authkitMiddleware, getSignInUrl, getSignUpUrl, getUser, refreshSession, signOut, Impersonation, };
import { AuthKitProvider } from './provider.js';
export { handleAuth, authkitMiddleware, getSignInUrl, getSignUpUrl, getUser, refreshSession, signOut, Impersonation, AuthKitProvider, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Impersonation = exports.signOut = exports.refreshSession = exports.getUser = exports.getSignUpUrl = exports.getSignInUrl = exports.authkitMiddleware = exports.handleAuth = void 0;
exports.AuthKitProvider = exports.Impersonation = exports.signOut = exports.refreshSession = exports.getUser = exports.getSignUpUrl = exports.getSignInUrl = exports.authkitMiddleware = exports.handleAuth = void 0;
const authkit_callback_route_js_1 = require("./authkit-callback-route.js");

@@ -17,2 +17,4 @@ Object.defineProperty(exports, "handleAuth", { enumerable: true, get: function () { return authkit_callback_route_js_1.handleAuth; } });

Object.defineProperty(exports, "Impersonation", { enumerable: true, get: function () { return impersonation_js_1.Impersonation; } });
const provider_js_1 = require("./provider.js");
Object.defineProperty(exports, "AuthKitProvider", { enumerable: true, get: function () { return provider_js_1.AuthKitProvider; } });
//# sourceMappingURL=index.js.map
import { WorkOS } from '@workos-inc/node';
export declare const VERSION = "0.9.0";
export declare const VERSION = "0.10.0";
declare const workos: WorkOS;
export { workos };

@@ -6,3 +6,3 @@ "use strict";

const env_variables_js_1 = require("./env-variables.js");
exports.VERSION = '0.9.0';
exports.VERSION = '0.10.0';
const options = {

@@ -9,0 +9,0 @@ apiHostname: env_variables_js_1.WORKOS_API_HOSTNAME,

{
"name": "@workos-inc/authkit-nextjs",
"version": "0.9.0",
"version": "0.10.0",
"description": "Authentication and session helpers for using WorkOS & AuthKit with Next.js",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -95,2 +95,20 @@ # AuthKit Next.js Library

### Wrap your app in `AuthKitProvider`
Use `AuthKitProvider` to wrap your app layout, which adds some protections for auth edge cases.
```jsx
import { AuthKitProvider } from '@workos-inc/authkit-nextjs';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<AuthKitProvider>{children}</AuthKitProvider>
</body>
</html>
);
}
```
### Get the current user

@@ -97,0 +115,0 @@

@@ -6,2 +6,3 @@ import { handleAuth } from './authkit-callback-route.js';

import { Impersonation } from './impersonation.js';
import { AuthKitProvider } from './provider.js';

@@ -20,2 +21,3 @@ export {

Impersonation,
AuthKitProvider,
};
import { WorkOS } from '@workos-inc/node';
import { WORKOS_API_HOSTNAME, WORKOS_API_HTTPS, WORKOS_API_KEY, WORKOS_API_PORT } from './env-variables.js';
export const VERSION = '0.9.0';
export const VERSION = '0.10.0';

@@ -6,0 +6,0 @@ const options = {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc