INNER CODE UNIT · JavaScript

signOut

ujjavaldesai07/spring-boot-react-ecommerce-app · client/src/actions/index.js:72

export const signOut = () => {
    log.info(`[ACTION]: signOut Cookie is removed...`)
    Cookies.remove(AUTH_DETAILS_COOKIE)
    return {
        type: HANDLE_SIGN_OUT
    }
}

export const signInUsingOAuth = googleAuth => async dispatch => {
    log.info(`[signInUsingOAuth] googleAuth = ${googleAuth}`)

    // check if not signed in
    if (googleAuth && !googleAuth.isSignedIn.get()) {
        log.info('[signInUsingOAuth] User has not signed in yet')

        // sign in
        googleAuth.signIn(JSON.parse(googleAuth.currentUser.get().getId())).then(async () => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…