Skip to content

appstarbd/auth-token-based

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quasar App Extension - Auth Token Based

This app extension provides token based authentication functionality.

screenshot

Install

quasar ext add auth-token-based

Quasar CLI will retrieve it from NPM and install the extension.

Prompts

The installation prompts for the routes which should be used to communicate with the backend. The requests and responses of the server should match with this extension. Please have a look at https://github.com/stefanvanherwijnen/express-ts-api-starter to see which format this extension uses.

It will also prompt for superuser functionality. This means it will have support for a 'superuser' role which grants access to a list of users, as shown in the screenshot.

Layout

A menu component is available as AuthMenu. To use it, add it to the layout, e.g.:

<template>
 <q-layout view="lHh Lpr lFf">
   ...header

   <q-drawer>
     <auth-menu />
   </q-drawer>

   ...container
 </q-layout>
</template>

<script>
import AuthMenu from './auth/AuthMenu'

export default {
 name: 'MyLayout',
 components: {
   AuthMenu
 }
}
</script>

Notes

Note that an existing axios boot file will be overwritten.

Uninstall

quasar ext remove auth-token-based

Donate

If you appreciate the work that went into this App Extension, please consider donating to Quasar.

About

Provides token based authentication for Quasar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors