Misakey is the user account solution for people and applications who value privacy and simplicity. And it’s open source.
Misakey SDK for integrating easy user authentication in your JS application
Using npm:
npm install @misakey/sdk
Using yarn:
yarn add @misakey/sdk
import { useMisakeyAuth } from "@misakey/sdk";
/** Copy this snippet in the config part of your app */
const authConfig = {
clientId: 'e60ee766-d285-44a6-88c0-2d6e5c4633c1',
redirectUri: 'http://localhost:3000/callback',
buttonPlacement: 'top-right',
userInfoRequirement: ['email'],
}
const { isAuthCallback, isAuthenticated, userProfile } = useMisakeyAuth(authConfig);
if (isAuthCallback) { return null; }
{isAuthenticated ? (
// Display your logged-in interface
`Hello ${userProfile.name}`
) : (
// Display your logged-out interface
'Hello stranger, please signin !'
)}
We appreciate feedback and contribution to this repo! Before you get started, please see the contribution guide.
For support or to provide feedback, please raise an issue on our issue tracker.
Misakey helps you to easily integrate robust user managment into your app.
This project is licensed under the MIT license. See the LICENSE file for more info.
Misakey uses GitLab for the development of its free softwares. Our Github repositories are only mirrors. If you want to work with us, fork us on gitlab.com (no registration needed, you can sign in with your Github account)