/// TEST: Token validation with plugins
/// EXPECT: PASS
/// EXPLAIN: Unary
auth.AuthService/Login
{
"username": "testuser",
"password": "secret"
}
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.testuser",
"refresh_token": "550e8400-e29b-41d4-a716-446655440000",
"expires_in": 3600
}
@len(.access_token) > 0
@uuid(.refresh_token)
.expires_in == 3600