Module

reduxAuthActions

Redux authentication actions
Author:

View Source store/actions/auth.js, line 10

Methods

# static getUserInfo() → {function}

Gets user info, including the users full name and a profile picture

View Source store/actions/auth.js, line 92

A React Redux dispatch function
function

# static handleAuthStateChanges() → {function}

Updates redux state whenever Firebase Auth state changes

View Source store/actions/auth.js, line 47

A React Redux dispatch function
function

# static showWelcomePage(isAuthFlowComplete) → {module:reduxAuthActions~ShowWelcomePageReturnObject}

Shows the welcome page. If the auth flow is complete, the welcome page will show immediately. Otherwise, the welcome page will show once the auth flow is complete.
Parameters:
Name Type Description
isAuthFlowComplete boolean Indicates if the auth flow is complete

View Source store/actions/auth.js, line 204

# static signOut() → {function}

Signs the current user out

View Source store/actions/auth.js, line 22

A React Redux dispatch function
function

# inner authError(error) → {module:reduxAuthActions~AuthErrorReturnObject}

Sets the auth error to the given error
Parameters:
Name Type Description
error object The auth error

View Source store/actions/auth.js, line 292

# inner retrievedUsersName(name) → {module:reduxAuthActions~RetrievedUsersNameReturnObject}

Sets the user's name
Parameters:
Name Type Description
name string The user's name

View Source store/actions/auth.js, line 329

# inner retrievedUsersPictureUrl(url) → {module:reduxAuthActions~RetrievedUsersPictureUrlReturnObject}

Sets the user's profile picture URL
Parameters:
Name Type Description
url string The profile picture url

View Source store/actions/auth.js, line 366

# inner signOutSuccess() → {module:reduxAuthActions~SignOutSuccessReturnObject}

Indicates that the sign out was successful

View Source store/actions/auth.js, line 310

# inner userNotAuthenticated() → {module:reduxAuthActions~UserNotAuthenticatedReturnObject}

Indicates that the user is not authenticated

View Source store/actions/auth.js, line 273

# inner usersNameRetrievalFailed() → {module:reduxAuthActions~UsersNameRetrievalFailedReturnObject}

Indicates that the retrieval of the user's name failed

View Source store/actions/auth.js, line 347

# inner usersPictureUrlRetrievalFailed() → {module:reduxAuthActions~UsersPictureUrlRetrievalFailedReturnObject}

Indicates that the retrieval of the user's profile picture url failed

View Source store/actions/auth.js, line 384

Type Definitions

# AuthErrorReturnObject

Return object for the authError function
Properties:
Name Type Description
type module:reduxActionTypes An action type
error object The auth error

View Source store/actions/auth.js, line 279

# ChangeAuthFlowReturnObject

Return object for the changeAuthFlow function
Properties:
Name Type Description
type module:reduxActionTypes An action type
flow module:authFlows The current auth flow to change to

View Source store/actions/auth.js, line 170

# DoNotShowWelcomePageReturnObject

Return object for the doNotShowWelcomePage function
Properties:
Name Type Description
type module:reduxActionTypes An action type

View Source store/actions/auth.js, line 211

# RetrievedUsersNameReturnObject

Return object for the retrievedUsersName function
Properties:
Name Type Description
type module:reduxActionTypes An action type
name string The user's name

View Source store/actions/auth.js, line 316

# RetrievedUsersPictureUrlReturnObject

Return object for the retrievedUsersPictureUrl function
Properties:
Name Type Description
type module:reduxActionTypes An action type
url string The profile picture url

View Source store/actions/auth.js, line 353

# ShowWelcomePageReturnObject

Return object for the showWelcomePage function
Properties:
Name Type Description
type module:reduxActionTypes An action type
isAuthFlowComplete boolean Indicates if the auth flow is complete

View Source store/actions/auth.js, line 189

# SignOutSuccessReturnObject

Return object for the signOutSuccess function
Properties:
Name Type Description
type module:reduxActionTypes An action type

View Source store/actions/auth.js, line 299

# StartAuthFlowReturnObject

Return object for the startAuthFlow function
Properties:
Name Type Description
type module:reduxActionTypes An action type
flow module:authFlows The current auth flow

View Source store/actions/auth.js, line 151

# UserAuthenticatedReturnObject

Return object for the userAuthenticated function
Properties:
Name Type Description
type module:reduxActionTypes An action type

View Source store/actions/auth.js, line 245

# UserNotAuthenticatedReturnObject

Return object for the userNotAuthenticated function
Properties:
Name Type Description
type module:reduxActionTypes An action type

View Source store/actions/auth.js, line 262

# UsersNameRetrievalFailedReturnObject

Return object for the usersNameRetrievalFailed function
Properties:
Name Type Description
type module:reduxActionTypes An action type

View Source store/actions/auth.js, line 336

object

# UsersPictureUrlRetrievalFailedReturnObject

Return object for the usersPictureUrlRetrievalFailed function
Properties:
Name Type Description
type module:reduxActionTypes An action type

View Source store/actions/auth.js, line 373

# WelcomePageCompleteReturnObject

Return object for the welcomePageComplete function
Properties:
Name Type Description
type module:reduxActionTypes An action type

View Source store/actions/auth.js, line 228