# superman66/vue-axios-github

Vue 全家桶 + axios 前端实现登录拦截、登出、拦截器等功能

Repository: https://github.com/superman66/vue-axios-github
Canonical: https://ross.abutalabs.com/products/vue-axios-github
Homepage: http://superman66.github.io/vue-axios-github/
Language: JavaScript
License: MIT
License Family: permissive
Topics: vuejs2, vue-router, vuex, login-oauth, axios
Last push: 2020-06-09T08:24:34+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3485, "days_push": 2276, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2668, forks 717 (observed 2026-08-28T04:07:09.327583+00:00)

## What it is
A Vue 2 demo project teaching how to implement login interception, logout, and token-expiry handling using vue-router guards, Vuex, and axios HTTP interceptors with GitHub personal access tokens. It doubles as a working example app that lists a user's GitHub repositories after token-based login.

## Use cases
- learn how to implement route guards for login in vue-router
- example of axios request and response interceptors
- handle 401 unauthorized and token expiry in a Vue SPA
- redirect users to login page and back after authentication
- use a GitHub personal access token to fetch repository list
- understand vuex state for storing auth tokens

## When to choose
- you are learning the Vue 2 ecosystem (vue-router, vuex, axios) and need a small worked example of auth interception
- you want a reference for axios interceptor patterns and beforeEach route guards

## When to avoid
- you need a production-ready authentication solution or maintained library
- you are starting a new project on Vue 3 or a modern stack
- you need real backend-backed OAuth rather than a GitHub token demo

## Facets
- artifact type: learning-resource
- maturity: abandoned
- function: auth, http-client, routing, state-management, middleware
- domain: web-development, frontend, education, tutorials
- platform: -
- tags: vue2, vue-router, vuex, axios-interceptors, login-guard, token-auth, demo-project, tutorial, web-server, nodejs, javascript

## Member repositories
- superman66/vue-axios-github (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.327583+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:18:14.554198+00:00, confidence not recorded.
  - readme: https://github.com/superman66/vue-axios-github (fetched 2026-08-28T04:07:09.327583+00:00, sha 451b9e190185)
  - homepage: http://superman66.github.io/vue-axios-github/ (fetched 2026-08-29T10:01:08.447007+00:00, sha 4da96ce65492)
- Data as of 2026-08-30T08:39:29.467469+00:00.
