Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@withone/auth

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@withone/auth - npm Package Compare versions

Comparing version
1.1.4
to
1.1.5
+1
-1
package.json
{
"name": "@withone/auth",
"version": "1.1.4",
"version": "1.1.5",
"description": "Frontend bindings for One Auth, a drop-in authentication widget that lets your users connect their third-party apps to your application. Supports OAuth and non-OAuth integrations across 250+ platforms with project-level multi-tenant configuration.",

@@ -5,0 +5,0 @@ "files": [

@@ -103,2 +103,16 @@ <img src="https://assets.withone.ai/banners/auth.png" alt="One Auth — Connect your users to every app with a drop-in auth widget." style="border-radius: 5px;">

### Auth window mode
By default the OAuth provider opens via a top-level redirect (`authWindow: "same"`) and returns the user to your page when they finish — this avoids popup blockers and works reliably across mobile browsers.
If a full-page redirect doesn't fit your app (e.g. you'd lose unsaved state), pass `authWindow: "popup"` to open the provider in a separate window instead:
```tsx
const { open } = useOneAuth({
token: { url: "https://your-domain.com/api/one-auth" },
authWindow: "popup",
onSuccess: (connection) => console.log(connection),
});
```
## Backend Token Generation

@@ -105,0 +119,0 @@