tests/testthat/test-get_token_access.R

context("get_token_access")
test_that("To try to get token with incorrect code return false", {
  code <- "incorrect-code"
  config <- get_config()
  expect_false(get_token_access(code, config))
})

Try the cognitoR package in your browser

Any scripts or data that you put into this service are public.

cognitoR documentation built on Sept. 14, 2023, 1:07 a.m.