@withone/auth
Advanced tools
+1
-1
| { | ||
| "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": [ |
+14
-0
@@ -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 @@ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
79033
0.73%289
5.09%