mirror of
https://github.com/kevin-DL/comedy-video-lib.git
synced 2026-01-18 13:45:12 +00:00
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
This commit is contained in:
7
plugins/magic.js
Normal file
7
plugins/magic.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Magic } from 'magic-sdk'
|
||||
|
||||
export default ({ app }, inject) => {
|
||||
const m = new Magic(process.env.magicPublicKey)
|
||||
m.preload()
|
||||
inject('magic', m)
|
||||
}
|
||||
Reference in New Issue
Block a user