Import idemeum JavaScript SDK.
<script src="https://asset.idemeum.com/webapp/SDK/idemeum.js"></script>
Initialize idemeum SDK instance. Use your clientId that you obtained from idemeum developer portal.
var idemeum = new IdemeumManager(
// Replace clientId with the the one you get from idemeum developer portal
(clientId = "00000000-0000-0000-000000000000")
);
idemeum.isLoggedIn().then(
function (data) {
// user is logged in
},
function (errorData) {
// user is NOT logged in
}
);
idemeum.login()
.then(function (data) {
/*
data returned here is the OIDC Token JSON object
{
"accessToken": "string",
"expires_in": 0,
"idToken": "string"
}
*/
})
.catch(function (err) {
// login fail
})
idemeum.userClaims().then(function (userClaimsResponse) {
//fetch user approved claims from JSON response
}).catch(function (errorResponse) {
});
idemeum.logout()
You can checkout the complete documentation guide here
You can reach us at [email protected]
This project uses the following license: MIT License