Skip to content

Instantly share code, notes, and snippets.

@p19ky
Last active November 15, 2022 09:07
Show Gist options
  • Save p19ky/d8f69e956fb303c728b77633647c8045 to your computer and use it in GitHub Desktop.
Save p19ky/d8f69e956fb303c728b77633647c8045 to your computer and use it in GitHub Desktop.
Integrate the Morpheus Plugin with ease.
<!-- Add Morpheus Plugin to your project in HTML file -->
<script
src="https://firebasestorage.googleapis.com/v0/b/morpheus-platform-f718b.appspot.com/o/MorpheusAuthentication.js?alt=media"
id="morpheus-identity-jkashdkjlahd8723y4kja"
key="YOUR-API-KEY"
>
</script>
<!-- Now you have access to a function that opens the plugin, verifies the user and returns it -->
<button type="button" onclick="window.verifyWithMorpheus((user) => {console.log('myUser', user)}, {color:'#08c4ea', darkMode: true, language:'ro'})">
Verify
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment