OAuth and Third-party Auth

Functions for handling OAuth and third-party authentication flows.