Skip to content

Commit

Permalink
MomentaryFix
Browse files Browse the repository at this point in the history
  • Loading branch information
munoztd0 committed Jul 28, 2023
1 parent 923052f commit ace0455
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions R/class-auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ FirebaseAuth <- R6::R6Class(
now <- as.numeric(Sys.time() + private$.grace_period)

if(as.numeric(signature$exp) < now){
cli_alert_danger("Signture expiry is in the past")
cli_alert_danger("Signature expiry is in the past")
return(FALSE)
}

if(as.numeric(signature$iat) > now){
cli_alert_danger("Signture issued at time is in the future")
return(FALSE)
}
# if(as.numeric(signature$iat) > now){
# cli_alert_danger("Signature issued at time is in the future")
# return(FALSE)
# }

if(signature$aud != super$get_project_id()){
cli_alert_danger("Signature audience is not the project id")
Expand All @@ -309,10 +309,10 @@ FirebaseAuth <- R6::R6Class(
return(FALSE)
}

if(signature$auth_time > now){
cli_alert_danger("Signature auth time is in the future")
return(FALSE)
}
# if(signature$auth_time > now){
# cli_alert_danger("Signature auth time is in the future")
# return(FALSE)
# }

return(TRUE)
},
Expand Down

0 comments on commit ace0455

Please sign in to comment.