Skip to content

Commit

Permalink
add sessionToken
Browse files Browse the repository at this point in the history
  • Loading branch information
sumxu96 committed Oct 2, 2024
1 parent d26932c commit 0da12df
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/offramp/generateOffRampURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import { DEFAULT_HOST } from '../config';
import type { Theme } from '../types/widget';

export type GenerateOffRampURLOptions = {
appId: string;
/** This & addresses or sessionToken are required. */
appId?: string;
host?: string;
theme?: Theme;
/** This or appId & addresses are required. */
sessionToken?: string;
} & OffRampAppParams;

export const generateOffRampURL = ({
Expand Down
2 changes: 1 addition & 1 deletion src/types/widget.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EventMetadata } from './events';

export type WidgetType = 'buy' | 'checkout' | 'offramp';
export type WidgetType = 'buy' | 'checkout' | 'sell';

export type IntegrationType = 'direct' | 'secure_standalone';

Expand Down
2 changes: 1 addition & 1 deletion src/utils/CBPayInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type CBPayInstanceConstructorArguments = {
const widgetRoutes: Record<WidgetType, string> = {
buy: '/buy',
checkout: '/checkout',
offramp: '/v3/sell',
sell: '/v3/sell',
};

export interface CBPayInstanceType {
Expand Down
1 change: 0 additions & 1 deletion src/utils/CoinbasePixel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export class CoinbasePixel {
...this.appParams,
});
}
console.log({ url });

this.log('Opening experience', { experience });

Expand Down

0 comments on commit 0da12df

Please sign in to comment.