View source: R/sanitize-token.R
sanitize_token | R Documentation |
Verifies the token is nonmissing and conforms to the legal pattern of a 32-character hexadecimal value. Each character must be an (a) digit 0-9, (b) uppercase letter A-F, or (c) lowercase letter a-f. #' Trailing line endings are removed.
sanitize_token(token)
token |
The REDCap token. Required. |
The token, without a terminal newline character.
Contact your institution's REDCap administrator for more information about your project-specific token.
Hao Zhu, Benjamin Nutter, Will Beasley, Jordan Mark Barbone
secret_token_1 <- "12345678901234567890123456ABCDEF" secret_token_2 <- "12345678901234567890123456ABCDEF\n" secret_token_3 <- "12345678901234567890123456abcdef" REDCapR::sanitize_token(secret_token_1) REDCapR::sanitize_token(secret_token_2) REDCapR::sanitize_token(secret_token_3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.