Skip to content

res.redirect is not a function #94

@ctfrancia

Description

@ctfrancia

I have a sandbox app with linkedin however, I keep getting the issue res.redirect is not a function not sure where the error lies.

import { Context } from 'vm';
const Linkedin = require('node-linkedin')('client_id', 'client_secret', 'callback_url');
const linkedin = Linkedin.init('client_id');

export const auth = (ctx: Context): any => {
  const scope = 'r_liteprofile';
  const info = Linkedin.auth.authorize(scope);
  console.log('res', info);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions