mirror of
https://github.com/kevin-DL/comedy-video-lib.git
synced 2026-01-11 19:04:27 +00:00
- 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
8 lines
160 B
JavaScript
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)
|
|
}
|