Skip to content

[Issue] firebase object #63

Closed
Closed
@amranidev

Description

@amranidev

Hi I really like this package and I'm looking forward to use it in the my future projects .

When I try to get user messages, the firebase object does not recognize userID data and refer it to undefined.

created(){
    this.auth.state({
        forward: '/app',
        redirect: '/login'
     }, (user) => {
         this.userID = user.uid // return firebase user id
         console.log(this.userID)
     });	
},
firebase:{
    messages: store.state.messages('messages/' + this.userID // undefined)
} ,
data()
{
    return {
        userID: '',
        auth: new Auth()
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions