Feature/phone register (#11)
Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local> Co-authored-by: ISMAIL MASSERAN <topaz@Mac.dlinkrouter.local> Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
@@ -36,6 +36,8 @@ export const useAuthStore = defineStore('auth', {
|
||||
isAuthenticated: (state) => state.user !== null,
|
||||
isAccountPending: (state) => state.user?.status === 'pending',
|
||||
isAccountActive: (state) => state.user?.status === 'active',
|
||||
isEmailVerified: (state) => Boolean(state.user?.email_verified_at),
|
||||
isPhoneVerified: (state) => Boolean(state.user?.phone_verified_at),
|
||||
roles: (state) => state.user?.roles ?? [],
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user