Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/feat/refresh-token' into feat/n…
Browse files Browse the repository at this point in the history
…x-refresh-merge
  • Loading branch information
einaralex committed Nov 3, 2023
2 parents c36b971 + b942832 commit b7ae1b4
Show file tree
Hide file tree
Showing 82 changed files with 2,505 additions and 423 deletions.
597 changes: 597 additions & 0 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions .yarn/sdks/eslint/lib/unsupported-api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/use-at-your-own-risk
require(absPnpApiPath).setup();
}
}

// Defer to the real eslint/use-at-your-own-risk your application uses
module.exports = absRequire(`eslint/use-at-your-own-risk`);
10 changes: 9 additions & 1 deletion .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
"name": "eslint",
"version": "8.39.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
}
20 changes: 20 additions & 0 deletions .yarn/sdks/prettier/bin-prettier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin-prettier.js
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/bin-prettier.js your application uses
module.exports = absRequire(`prettier/bin-prettier.js`);
6 changes: 3 additions & 3 deletions .yarn/sdks/prettier/index.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/index.js
// Setup the environment to be able to require prettier
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/index.js your application uses
module.exports = absRequire(`prettier/index.js`);
// Defer to the real prettier your application uses
module.exports = absRequire(`prettier`);
3 changes: 2 additions & 1 deletion .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"name": "prettier",
"version": "2.8.8-sdk",
"main": "./index.js",
"type": "commonjs"
"type": "commonjs",
"bin": "./bin-prettier.js"
}
6 changes: 3 additions & 3 deletions .yarn/sdks/typescript/lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/typescript.js
// Setup the environment to be able to require typescript
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/lib/typescript.js your application uses
module.exports = absRequire(`typescript/lib/typescript.js`);
// Defer to the real typescript your application uses
module.exports = absRequire(`typescript`);
6 changes: 5 additions & 1 deletion .yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"name": "typescript",
"version": "5.0.4-sdk",
"main": "./lib/typescript.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"tsc": "./bin/tsc",
"tsserver": "./bin/tsserver"
}
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Interfaces:
(await client.auth({
client_id: 'your_client_credentials_uuid', // replace with your client ID
client_secret: 'your_client_secret', // replace with your client secret
})) as ClientCredentials;
})) as ClientCredentialsRequest;

// Retrieve authentication data after successful authentication.
await client.getAuthContext();
Expand All @@ -84,7 +84,7 @@ const { access_token, refresh_token } = client.bearerProfile as BearerProfile;

Interfaces:

- {@link types.ClientCredentials}
- {@link types.ClientCredentialsRequest}
- {@link types.BearerProfile}

API documentation:
Expand Down Expand Up @@ -134,7 +134,7 @@ const retrievedCodeVerifier = window.localStorage.getItem('myCodeVerifier');
code: authCode,
code_verifier: retrievedCodeVerifier,
redirect_url: 'http://your-webpage.com/monerium-integration', // ensure this matches the redirect_uri used initially
})) as AuthCode;
})) as AuthCodeRequest;

// Confirm the user is authenticated and retrieve the authentication data.
await client.getAuthContext();
Expand All @@ -145,7 +145,7 @@ const { access_token, refresh_token } = client.bearerProfile as BearerProfile;

Interfaces:

- {@link types.AuthCode}
- {@link types.AuthCodeRequest}
- {@link types.BearerProfile}

API documentation:
Expand Down
6 changes: 6 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,11 @@ const config: Config = {
maxWorkers: 1,
coverageDirectory: '../static/coverage',
setupFiles: ['./configs/jest.setup.js'],
moduleNameMapper: {
'^utils$': '<rootDir>/src/utils',
'^types$': '<rootDir>/src/types',
'^helpers$': '<rootDir>/src/helpers',
// Add more aliases as needed
},
};
export default config;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"jest-localstorage-mock": "^2.4.26",
"nodemon": "^3.0.1",
"prettier": "^2.8.8",
"ts-jest": "^29.0.3",
Expand Down
Loading

0 comments on commit b7ae1b4

Please sign in to comment.