Skip to content

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

@jlvdh

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

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