|
|
|
|
|
by wlaurance
2842 days ago
|
|
I've been deep in the weeds building out a course. Today I wanted to share a snippet of building out an express + passport auth scheme using the latest async/await patterns. It's really nice to not be in callback hell. Even though passport mostly uses callbacks we can still do our app-specific code like looking up a user by email, de-serialization, and serialization in an async function if desired. I have an email signup if you want to get the full working code same. Thanks! Will |
|