Skip to content

Commit

Permalink
Merge pull request 'Adds Imports and Suggets to DESCRIPTION file' (#5)…
Browse files Browse the repository at this point in the history
… from andres/tapLock:T2 into main

Reviewed-on: https://secure.ixpantia.com/imasd/tapLock/pulls/5
  • Loading branch information
FvD committed Dec 17, 2023
2 parents 1d082cb + 5b55936 commit fde50f6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Imports:
httr2,
stringr,
jose,
purrr,
promises,
curl,
glue,
lubridate,
stats
Suggests:
shiny
1 change: 1 addition & 0 deletions R/auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ expires_at <- function(token) {
#' @description Gets the issued at time of an access token
#'
#' @param token An access_token object
#' @param field The field to get from the token
#'
#' @return A POSIXct object containing the date and time the token was issued
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ parse_cookies <- function(x) {
cookie_pairs <- purrr::map(cookie_pairs, ~ stringr::str_split(.x, "=", n = 2))[[1]]
cookie_pairs <- purrr::map(cookie_pairs, function(.x) {
.x[2] <- curl::curl_unescape(.x[2])
setNames(.x[2], .x[1])
stats::setNames(.x[2], .x[1])
})
cookie_pairs <- purrr::flatten(cookie_pairs)
return(cookie_pairs)
Expand Down
2 changes: 2 additions & 0 deletions man/get_token_field.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fde50f6

Please sign in to comment.