Say hello to a green auth provider from Europe.
Silvan Auth operates on Leaf.cloud's sustainable servers: Powered by green energy, repurposing waste heat to warm urban buildings and offer free hot showers. Half of the revenue is invested in several planet restoring initiatives.
Most people hate passwords, but have access to their email. With Silvan Auth implemented into your app, that's enough to sign in.
Less features lead to less code, maintainance and bugs. This makes Silvan Auth easy to implement.
Implementing Silvan Auth involves two main steps: You'll have a login UI in your frontend, and work with user data on the backend.
You've got the freedom to build a UI completely from scratch, using the TypeScript-based frontend SDK. For a faster setup, you can use the prebuilt web component. This includes everything a user needs to sign in:
<script src="https://cdn.silvan.earth/auth-client-web/latest/index.js"></script> <silvan-auth></silvan-auth>
At some point, you'd probably call your backend to perform an action on behalf of the user. To do this, you'll include the accessToken
in your request, like so:
const accessToken = await SilvanAuth.getAccessToken() await callYourApi(accessToken)
Now protect that endpoint by verifying the token:
const userData = verifyAccessToken(accessToken)
That's it! You can be confident that whatever you need to do can be done securely from this point out.
Hey earlybird! Want a sneak peek? Drop your email and you’ll be the first to know when it’s ready.