
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@magic-sdk/pnp
Advanced tools
Passwordless authentication for the web with an out-of-the-box UI.
pnp == plug n' play
: A lightweight connector that wraps Magic JS authentication with a beautiful, functional out-of-the-box login form.
License · Changelog · Contributing Guide
See the developer documentation to learn how you can build with Magic Login Form in a matter of minutes.
<script>
tags)Sign up or log in to the developer dashboard to receive API keys that will allow your application to interact with Magic's authentication APIs.
Create a new login page and add the script tag below. Your API key can be found on the Home page of your Magic Dashboard.
<!-- /login.html -->
<script
src="https://auth.magic.link/pnp/login"
data-magic-publishable-api-key="[YOUR_PUBLISHABLE_API_KEY_HERE]"
data-terms-of-service-uri="/path/to/your/terms-of-service"
data-privacy-policy-uri="/path/to/your/privacy-policy"
data-redirect-uri="/callback"> <!-- Replace with the location of your callback.html -->
</script>
This will generate a pre-built login form based on the branding and login methods you’ve enabled via Dashboard. Users will automatically be redirected to the URI provided in data-redirect-uri upon authorization. If no data-redirect-uri is specified, a relative path — /callback — is automatically used as a fallback.
Next, create a page containing the script tag below to handle the authentication callback.
<!-- /callback.html -->
<script
src="https://auth.magic.link/pnp/callback"
data-magic-publishable-api-key="[YOUR_PUBLISHABLE_API_KEY_HERE]">
</script>
Voila!
(Really, though, that's it!)
FAQs
Passwordless authentication for the web with an out-of-the-box UI.
The npm package @magic-sdk/pnp receives a total of 36 weekly downloads. As such, @magic-sdk/pnp popularity was classified as not popular.
We found that @magic-sdk/pnp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.