Skip to content

Commit

Permalink
Upd: Rename consentBbClientId to clientId
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Nov 16, 2023
1 parent 4219cf8 commit ac1e4e6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/config/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"baseUrl": "https://staging-consent-bb-api.igrant.io/v2",
"redirectUrl": "http://localhost:3000/login",
"consentBbClientId": "igrant-ios-app"
"clientId": "igrant-ios-app"
}
2 changes: 1 addition & 1 deletion src/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Config = (BASE_URL, REDIRECT_URI, CONSENT_BB_CLIENT_ID) => {
return {
baseUrl: BASE_URL,
redirectUrl: REDIRECT_URI,
consentBbClientId: CONSENT_BB_CLIENT_ID,
clientId: CONSENT_BB_CLIENT_ID,
firebase: {
deeplink: "https://igrant.page.link/openApp"
},
Expand Down
2 changes: 1 addition & 1 deletion src/authorization/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class Auth {
} else {
let body = {
refreshtoken: this.refreshToken,
clientId: this.store.config.consentBbClientId
clientId: this.store.config.clientId
}

axios.post(`${this.store.config.apiEndpoints.refreshToken}`, body, {
Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ export const Init = (config = {}) => {
const toConfigModal = (config) => {
let baseUrl = config.baseUrl;
let redirectUrl = config.redirectUrl;
let consentBbClientId = config.consentBbClientId;
let clientId = config.clientId;
if (baseUrl &&
typeof (baseUrl) === 'string' &&
typeof (redirectUrl) === 'string' &&
typeof (consentBbClientId) === 'string') {
const configModal = Config(baseUrl, redirectUrl, consentBbClientId);
typeof (clientId) === 'string') {
const configModal = Config(baseUrl, redirectUrl, clientId);
return configModal;
} else {
console.error('Config format is incorrect');
Expand Down

0 comments on commit ac1e4e6

Please sign in to comment.