这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions crates/turborepo-auth/src/auth/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,8 @@ mod tests {
id: "id".to_string(),
name: "name".to_string(),
token_type: "token".to_string(),
origin: "github".to_string(),
scopes: vec![turborepo_vercel_api::token::Scope {
scope_type: "user".to_string(),
origin: "github".to_string(),
team_id: None,
expires_at: None,
created_at: 1111111111111,
Expand Down
2 changes: 0 additions & 2 deletions crates/turborepo-auth/src/auth/sso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ mod tests {
id: "test".to_string(),
name: "test".to_string(),
token_type: "test".to_string(),
origin: "test".to_string(),
scopes: vec![Scope {
scope_type: "team".to_string(),
origin: "saml".to_string(),
team_id: Some("my-team".to_string()),
created_at: 0,
expires_at: None,
Expand Down
8 changes: 0 additions & 8 deletions crates/turborepo-auth/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ mod tests {
let quick_scope = |expiry| Scope {
expires_at: expiry,
scope_type: "".to_string(),
origin: "".to_string(),
created_at: 0,
team_id: None,
};
Expand All @@ -406,7 +405,6 @@ mod tests {
id: "".to_string(),
name: "".to_string(),
token_type: "".to_string(),
origin: "".to_string(),
created_at: 0,
};

Expand Down Expand Up @@ -678,7 +676,6 @@ mod tests {
id: "test".to_string(),
name: "test".to_string(),
token_type: "test".to_string(),
origin: "test".to_string(),
scopes: vec![],
active_at: current_unix_time() - 100,
created_at: 0,
Expand Down Expand Up @@ -728,7 +725,6 @@ mod tests {
id: "test".to_string(),
name: "test".to_string(),
token_type: "test".to_string(),
origin: "test".to_string(),
scopes: vec![],
active_at: current_time - 100,
created_at: 0,
Expand All @@ -745,7 +741,6 @@ mod tests {
id: "test".to_string(),
name: "test".to_string(),
token_type: "test".to_string(),
origin: "test".to_string(),
scopes: vec![],
created_at: 0,
active_at: 0,
Expand Down Expand Up @@ -806,7 +801,6 @@ mod tests {
id: "test".to_string(),
name: "test".to_string(),
token_type: "".to_string(),
origin: "test".to_string(),
scopes: vec![],
active_at: current_unix_time() - 100,
created_at: 0,
Expand All @@ -827,7 +821,6 @@ mod tests {
id: "test".to_string(),
name: "test".to_string(),
token_type: "sso".to_string(),
origin: "test".to_string(),
scopes: vec![],
active_at: current_unix_time() - 100,
created_at: 0,
Expand Down Expand Up @@ -860,7 +853,6 @@ mod tests {
id: "test".to_string(),
name: "test".to_string(),
token_type: "".to_string(),
origin: "test".to_string(),
scopes: vec![],
active_at: current_unix_time() - 100,
created_at: 0,
Expand Down
2 changes: 0 additions & 2 deletions crates/turborepo-vercel-api/src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pub struct ResponseTokenMetadata {
pub name: String,
#[serde(rename = "type")]
pub token_type: String,
pub origin: String,
pub scopes: Vec<Scope>,
#[serde(rename = "activeAt")]
pub active_at: u128,
Expand All @@ -18,7 +17,6 @@ pub struct ResponseTokenMetadata {
pub struct Scope {
#[serde(rename = "type")]
pub scope_type: String,
pub origin: String,
#[serde(rename = "createdAt")]
pub created_at: u128,
#[serde(rename = "expiresAt")]
Expand Down
Loading