Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@fellow/auth-browser
Advanced tools
A fork of the Capacitor Browser API only for iOS that supports extra features for authorization.
The Auth Browser API provides the ability to open an in-app browser and subscribe to browser events.
On iOS, this uses ASWebAuthenticationSession
and is compliant with leading OAuth service in-app-browser requirements.
on Android please use @capacitor/browser
plugin.
npm install @fellow/authbrowser
npx cap sync
import { AuthBrowser } from '@fellow/authbrowser';
const LoginWithN = async (n: string) => {
const result = await AuthBrowser.start({
url: n,
scheme: "myapp",
});
alert(JSON.stringify(result));
if (result.success) {
// Handle success, result.url should be defined
} else {
// Handle result.error
}
};
start(options: OpenOptions) => Promise<SuccessOrFailureResult>
iOS only: Open a page with the specified options.
Error on other platforms.
Param | Type |
---|---|
options | OpenOptions |
Returns: Promise<SuccessOrFailureResult>
Since: 1.0.0
abort() => Promise<void>
iOS only: Close an open browser window.
Error on other platforms.
Since: 1.0.0
Represents the options passed to open
.
Prop | Type | Description | Since |
---|---|---|---|
url | string | The URL to which the browser is opened. | 1.0.0 |
scheme | string | The Scheme that the browser should listen to for to redirect back to the app. For example if you want to use the scheme myapp:// you would pass myapp . |
{ success: true; url: string; }
{ success: false; error: string; }
FAQs
A fork of the Capacitor Browser API only for iOS that supports extra features for authorization.
The npm package @fellow/auth-browser receives a total of 3 weekly downloads. As such, @fellow/auth-browser popularity was classified as not popular.
We found that @fellow/auth-browser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.