Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/smartling/lambda/src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Client {
return { code: '1234' };
}

async callback() {
async oauthCallback() {
return {
access_token: 'access-123',
refresh_token: 'refresh_token-123',
Expand Down
2 changes: 1 addition & 1 deletion apps/smartling/lambda/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function makeApp(fetchFn: any, issuer: any) {

try {
const params = client.callbackParams(req);
const data = await client.callback('', params);
const data = await client.oauthCallback('', params);

res.redirect(
`/frontend/index.html?access_token=${data.access_token}&refresh_token=${data.refresh_token}`
Expand Down
Loading