LogoSkills

inspector/auth

Authentication state runtime debugging

항ëĒŠë‚´ėšŠ
Categorypetmedi-development
Complexitysimple
MCP Serversflutter-inspector

/inspector/auth#

Context Framework Note: Activated when debugging authentication-related issues.

Triggers#

  • Login issues
  • Token expiration issues
  • Authentication state check

MCP Tools#

auth_get_status#

Returns the current authentication status.

Response example:

{
   " isAuthenticated " : true,
   " authMethod " :  " email " ,
   " tokenStatus " : {
     " accessToken " : {
       " exists " : true,
       " expiresAt " :  " 2024-01-01T12:00:00Z " ,
       " isExpired " : false,
       " expiresIn " :  " 45 minutes " 
     },
     " refreshToken " : {
       " exists " : true,
       " expiresAt " :  " 2024-01-08T10:00:00Z " ,
       " isExpired " : false
    }
  }
}

auth_get_user#

Returns the currently logged-in user information.

Response example:

{
   " user " : {
     " id " : 123,
     " email " :  " user@example.com " ,
     " name " :  " Hong Gildong " ,
     " roles " : [ " user " ,  " premium " ],
     " createdAt " :  " 2023-06-15T10:00:00Z " 
   }
}

Common Diagnostics#

Cannot log in#

1. auth_get_status - >   Check authentication status
2. Verify tokenStatus
3. Review login flow

401 Unauthorized error#

1. auth_get_status - >   Check token expiration
2. Check refreshToken status
3. Review token renewal logic

Insufficient permissions error#

1. auth_get_user - >   Check user roles
2. Compare with required permissions
3. Review permission check logic

Automatic logout issue#

1. auth_get_status - >   Check token expiration time
2. Check session timeout settings
3. Review token renewal timing

Examples#

Check authentication status#

/inspector/auth status

Check user info#

/inspector/auth user

Detailed token status check#

/inspector/auth token

References#

  • Detailed implementation: .claude/agents/flutter-inspector-auth.md
  • Master inspector: .claude/commands/inspector.md
  • Network inspector: .claude/commands/inspector/network.md