Skip to content

What's the purpose of passing app to the passport init function? #9

Open

Description

@jlvdh

On line 17 in index.js app is passed to the init function:

require('./authentication').init(app)

What's the purpose of this? I tried without and it doesn't seem to affect functionality.

https://github.com/RisingStack/nodehero-authentication/blob/master/app/index.js#L17

Activity

  1. GorgeousPuree commented on May 24, 2020

    @GorgeousPuree

    What's the purpose of this? I tried without and it doesn't seem to affect functionality.

    I don't understand it too. Did you get it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions