Skip to content

[BUG] Build failing when service option auth is Boolean (-> Fix coming soon) #446

Closed
@aaharu

Description

@aaharu

Version

@nuxtjs/firebase: 7.4.0
firebase:
nuxt:

Reproduction Link

Steps to reproduce

What is Expected?

What is actually happening?

in lib/plugins/services/auth.js

<% const hasOnAuthStateChangedMutation = (typeof serviceOptions.initialize.onAuthStateChangedMutation === 'string') %>
<% const hasOnAuthStateChangedAction = (typeof serviceOptions.initialize.onAuthStateChangedAction === 'string') %>
<% const hasOnAuthStateChanged = (hasOnAuthStateChangedMutation || hasOnAuthStateChangedAction) %>
<% const onIdTokenChangedMutation = (typeof serviceOptions.initialize.onIdTokenChangedMutation === 'string') %>
<% const onIdTokenChangedAction = (typeof serviceOptions.initialize.onIdTokenChangedAction === 'string') %> 
<% const hasIdTokenChanged = (onIdTokenChangedMutation || onIdTokenChangedAction) %>

Cannot read property 'onAuthStateChangedMutation' of undefined, because these lines has be put before <% if (serviceOptions.initialize) { %>

Metadata

Metadata

Assignees

Labels

all-clearEverything is clear - can be worked onbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions