Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

ENG-1917 - feat: update tokenize usage in JS #137

Merged
merged 2 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/includes/api-reference/_tokenize.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { BasisTheory } from '@basis-theory/basis-theory-js';

const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED');

const token = await bt.tokenize.tokenize({
const token = await bt.tokenize({
first_name: 'John',
last_name: 'Doe'
});
Expand Down Expand Up @@ -73,7 +73,7 @@ import { BasisTheory } from '@basis-theory/basis-theory-js';

const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED');

const token = await bt.tokenize.tokenize({
const token = await bt.tokenize({
type: 'token',
data: 'Sensitive Value',
metadata: {
Expand Down Expand Up @@ -142,7 +142,7 @@ import { BasisTheory } from '@basis-theory/basis-theory-js';

const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED');

const token = await bt.tokenize.tokenize({
const token = await bt.tokenize({
type: 'card',
data: {
number: '4242424242424242',
Expand Down Expand Up @@ -230,7 +230,7 @@ import { BasisTheory } from '@basis-theory/basis-theory-js';

const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED');

const token = await bt.tokenize.tokenize([
const token = await bt.tokenize([
'John',
'Doe',
{
Expand Down Expand Up @@ -343,7 +343,7 @@ import { BasisTheory } from '@basis-theory/basis-theory-js';

const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED');

const token = await bt.tokenize.tokenize({
const token = await bt.tokenize({
first_name: 'John',
last_name: 'Doe',
primary_card: {
Expand Down
2 changes: 1 addition & 1 deletion source/includes/elements/_elements_services.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ You can fetch this same data later with [Get a Token API](/api-reference#tokens-
## Tokenize

```javascript
BasisTheory.tokenize.tokenize({
BasisTheory.tokenize({
sensitiveData: sensitiveDataElement,
nonSensitiveData: 'plainText', // see warning on plain text data
otherData: {
Expand Down