Skip to content

Commit

Permalink
remove decodeAnalyticsCookie from example
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticfalconvt committed Feb 5, 2024
1 parent 434feb8 commit 4227119
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions example.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { GraphQLClient } from 'graphql-request';
import { decodeAnalyticsCookie, getSdk } from '.';
import { getSdk } from '.';

const defaultEndpoint = 'https://cloud.stardog.com/api/graphql';

Expand All @@ -17,11 +17,6 @@ async function main() {

console.log(`GraphQL Connections:`, listConnections);
console.log(`GraphQL Profile:`, profile);

const fakeCookieValue =
'eyJjb25zZW50ZWQiOnRydWUsImlkZW50aXR5IjoiZnJhbmtAYmFyLmNvbSJ9';
console.log(decodeAnalyticsCookie(fakeCookieValue));
console.log(decodeAnalyticsCookie('not really valid'));
}

main();

0 comments on commit 4227119

Please sign in to comment.