Files
comedy-video-lib/plugins/magic.js
Kevin ANATOLE de3d4d03c3 Authentication
- Installed magic-sdk
- Created a login button with email
- Store the token and user login state in the vuex store
- Created a logout method that resets the store
2020-11-07 20:59:46 +00:00

8 lines
160 B
JavaScript

import { Magic } from 'magic-sdk'
export default ({ app }, inject) => {
const m = new Magic(process.env.magicPublicKey)
m.preload()
inject('magic', m)
}