Skip to content

Commit

Permalink
Merge pull request #58 from constantine2nd/develop
Browse files Browse the repository at this point in the history
More logging
  • Loading branch information
constantine2nd authored Oct 9, 2024
2 parents 82ecacd + c27f0ec commit e3ce2d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-explorer",
"version": "1.0.17",
"version": "1.0.18",
"private": true,
"scripts": {
"dev": "vite & ts-node server/app.ts",
Expand Down
3 changes: 3 additions & 0 deletions server/controllers/UserController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export class UserController {
this.oauthInjectedService.requestTokenKey = undefined
this.oauthInjectedService.requestTokenSecret = undefined
session['clientConfig'] = undefined
if(!this.obpExplorerHome) {
console.error(`VITE_OBP_API_EXPLORER_HOST: ${this.obpExplorerHome}`)
}
response.redirect(this.obpExplorerHome)
return response
}
Expand Down
6 changes: 5 additions & 1 deletion server/middlewares/OauthAccessTokenMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export default class OauthAccessTokenMiddleware implements ExpressMiddlewareInte
}
session['clientConfig'] = clientConfig
console.log('OauthAccessTokenMiddleware.ts use says: Seems OK, redirecting..')
response.redirect(`${process.env.VITE_OBP_API_EXPLORER_HOST}`)
const obpExplorerHome = process.env.VITE_OBP_API_EXPLORER_HOST
if(!obpExplorerHome) {
console.error(`VITE_OBP_API_EXPLORER_HOST: ${obpExplorerHome}`)
}
response.redirect(`${obpExplorerHome}`)
}
}
)
Expand Down

0 comments on commit e3ce2d9

Please sign in to comment.