Skip to content

An awesome chrome extension, 🎉 Help developers manage accounts.

License

Notifications You must be signed in to change notification settings

xuerzong/auth-manager

Repository files navigation

🎉 Help developers manage accounts

How to dev

git clone https://github.com/xuerzong/auth-manager.git
# or
git clone git@github.com:xuerzong/auth-manager.git

cd auth-manager

yarn install
yarn dev
// src/services/auth.ts
import type { AccountInterface } from '@/types/account'

export const select = async (account: AccountInterface) => {
  // selected
}

export default { select }

Usage

yarn build

then:

  • Open the Extension Management page by navigating to chrome://extensions

  • Enable the Developer mode

  • Use the Load unpacked button to select the dist dir.

Options

  • @/libs/cookies
import cookies from '@/libs/cookies'

cookies.set(KEY, VALUE)
  • @/libs/tabs
import tabs from '@/libs/tabs'

tabs.reload() // Reload current tab
  • @/libs/storage
import storage from '@/libs/storage'

storage.get(KEY)

storage.set(KEY, VALUE)
  • @/libs/router
import router from '@/libs/router'

router.goto(LOCATION)
  • @/libs/request
import reuqest from '@/libs/request'
request.get(...args)
request.post(...args)

About

An awesome chrome extension, 🎉 Help developers manage accounts.

Topics

Resources

License

Stars

Watchers

Forks

Languages