Skip to content

Unable to write cookie in nuxt asyncdata? #269

Description

@StringKe

Is your feature request related to a problem? Please describe.
Unable to write cookie in nuxt asyncdata

Describe the solution you'd like
write cookie in nuxt asyncdata

Describe alternatives you've considered
none

Additional context

asyncData({ $warehouse }: any): Promise<object | void> | object | void {
    const expiration = new Date().getTime() + 60 * 60 * 24 * 7
    $warehouse.set('token', 'asyncData', expiration)
},

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions