File: bearer_token.R

package info (click to toggle)
r-cran-rtweet 1.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,224 kB
  • sloc: sh: 13; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#' Bearer token
#'
#' @description 
#' `r lifecycle::badge("deprecated")`
#' 
#' `bearer_token()` has been deprecated because it used a rather indirect
#' method of generating a bearer token. Instead, use [rtweet_app()], copying
#' in the bearer token directly from the 
#' [Twitter developer portal](https://developer.twitter.com/en/portal/projects-and-apps). 
#' See `vignette("auth")` for full details.
#' 
#' @keywords internal
#' @export
bearer_token <- function(token = NULL) {
  lifecycle::deprecate_stop("1.0.0", "bearer_token()", "rtweet_app()")
}

#' Invalidate bearer token
#'
#' @description 
#' `r lifecycle::badge("deprecated")`
#' Invalidation of the bearer token is no longer the responsibility of rtweet.
#' This is something you should instead perform in the [Twitter developer 
#' portal](https://developer.twitter.com/en/portal/projects-and-apps).
#' 
#' @keywords internal
#' @export
invalidate_bearer <- function(token = NULL) {
  lifecycle::deprecate_stop("1.0.0", "invalidate_bearer()")
}