An open API service indexing awesome lists of open source software.

https://github.com/mikaelvesavuori/mikroauth-example

Example project that lets you try out MikroAuth.
https://github.com/mikaelvesavuori/mikroauth-example

demo example magic-link magic-link-authentication mikroauth

Last synced: 3 months ago
JSON representation

Example project that lets you try out MikroAuth.

Awesome Lists containing this project

README

          

# MikroAuth example

This is an example project that lets you try out [MikroAuth](https://github.com/mikaelvesavuori/mikroauth) on a minimal use-case: Entering your email address to get a magic link and then see some data on your user. When logged in, you can also see some further information logged out to the console.

Local copies of the [MikroAuth client library](https://github.com/mikaelvesavuori/mikroauth-example) and [MikroSafe](https://github.com/mikaelvesavuori/mikrosafe) are bundled with this example.

## Instructions

1. Make sure that you have a MikroAuth server running. It should be enough to clone the MikroAuth repo and run it with `npm start`.
2. Then run this example repo with `npm start`.
3. If you have made configuration changes, then update the URL reference around line ~100 in `index.html` of this repo.

## What It Looks Like

![Login](./image1.png)

![Sent Link](./image2.png)

![Logged In](./image3.png)