Skip to content

Commit

Permalink
fix: ✏️ fixed interactive typo
Browse files Browse the repository at this point in the history
  • Loading branch information
munoztd0 committed Dec 21, 2023
1 parent 295c3d4 commit 8bd9aa5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions R/class-auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ FirebaseAuth <- R6::R6Class(

if(inherits(signature, "error")){
cli_alert_danger("Invalid signature")
if(interactive){
if(interactive()){
CHOICE <- menu(c("Yes", "No"), title="Do you still want to continue ?")
if (CHOICE != TRUE){
return(FALSE)
Expand All @@ -291,7 +291,7 @@ FirebaseAuth <- R6::R6Class(

if(as.numeric(signature$exp) < now){
cli_alert_danger("Signature expiry is in the past")
if(interactive){
if(interactive()){
CHOICE <- menu(c("Yes", "No"), title="Do you still want to continue ?")
if (CHOICE != TRUE){
return(FALSE)
Expand All @@ -305,7 +305,7 @@ FirebaseAuth <- R6::R6Class(

if(as.numeric(signature$iat) > now){
cli_alert_danger("Signature expiry is in the future")
if(interactive){
if(interactive()){
CHOICE <- menu(c("Yes", "No"), title="Do you still want to continue ?")
if (CHOICE != TRUE){
return(FALSE)
Expand All @@ -319,7 +319,7 @@ FirebaseAuth <- R6::R6Class(

if(signature$aud != super$get_project_id()){
cli_alert_danger("Signature audience is not the project id")
if(interactive){
if(interactive()){
CHOICE <- menu(c("Yes", "No"), title="Do you still want to continue ?")
if (CHOICE != TRUE){
return(FALSE)
Expand All @@ -338,7 +338,7 @@ FirebaseAuth <- R6::R6Class(

if(signature$iss != iss){
cli_alert_danger("Signature incorrect issuer")
if(interactive){
if(interactive()){
CHOICE <- menu(c("Yes", "No"), title="Do you still want to continue ?")
if (CHOICE != TRUE){
return(FALSE)
Expand All @@ -352,7 +352,7 @@ FirebaseAuth <- R6::R6Class(

if(signature$sub == ""){
cli_alert_danger("Signature subject is invalid")
if(interactive){
if(interactive()){
CHOICE <- menu(c("Yes", "No"), title="Do you still want to continue ?")
if (CHOICE != TRUE){
return(FALSE)
Expand All @@ -366,7 +366,7 @@ FirebaseAuth <- R6::R6Class(

if(signature$auth_time > now){
cli_alert_danger("Signature auth time is in the future.")
if(interactive){
if(interactive()){
CHOICE <- menu(c("Yes", "No"), title="Do you still want to continue ?")
if (CHOICE != TRUE){
return(FALSE)
Expand Down

0 comments on commit 8bd9aa5

Please sign in to comment.