Activities

suenot

suenot posted a new question

example-auth0 •

vuetify

Looking for vuetify gui for auth-lock.

StringKe

StringKe posted a new question

example-auth0 •

How to pass hidden parameters in middleware?

I want to make jumps with parameters but not query parameters.
exp:

middleware -> auth.js

import _ from 'lodash'

export default function(ctx) {
  if (!_.isEmpty(ctx.store.state.user)) {
    ctx.redirect({ name: 'index', query: { message: 'your login...' } })
  }
}

If you use the query parameters, the message will always exist when the user refreshes

thibaultvanluchene

thibaultvanluchene posted a new question

example-auth0 •

Completely broken

Nothing to preview

WangHansen

WangHansen posted a new question

example-auth0 •

Cookie for storing JWT with httpOnly from backend?

From my understanding, there are three parts involved in a website:

  • Client (Browser)
  • Nuxt Server (For SSR)
  • Backend Server (For API)

I understand that localStorage cannot be used for storing JWT token, cookie needs to be used.
But I don't understand if this is the cookie for Client -> Nuxt communication, or Nuxt -> Backend communication.
And if on the Backend Server(API), I used httpOnly, can I still use the cookie in the Nuxt Server to store the data?
From my understanding, it should not be since Nuxt is the middle layer for rendering. If it is so, what is the way to correctly store JWT?

Another confusion raised from this is, for nuxtServerInit, the { req } param, is this the request from Client -> Nuxt or Nuxt -> Backend?

Sorry for all these questions, I searched a lot online but can't seem to find answers to these questions which I belive will help others as well.
Thanks for the help.

web-yangfan

web-yangfan posted a new question

example-auth0 •

No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.

No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred.

1111.png

I have tried a lot of methods and can't solve it. Ask for help.

antoniosai

antoniosai posted a new feature request

example-auth0 •

idea test

What problem does this feature solve?

test

csrftoken

csrftoken posted a new question

example-auth0 •

About using Windows objects?

While you are working with middleware, I find that Windows objects are invoked. I wonder what you configured.
Could you help me use windows objects?

ton2142

ton2142 posted a new question

example-auth0 •

How to custom Universal Login ?

I edit custom in uniserval login auth0 test preview that work , But in project not work login form still show original . What wrong ?

Loic57

Loic57 posted a new question

example-auth0 •

'@nuxtjs/auth'

Why don't you use '@nuxtjs/auth' ?
I can't see it in packages.json whereas in this website : https://auth.nuxtjs.org/getting-started/setup It says you need it.

manylov

manylov posted a new question

example-auth0 •

Api call

Where to get token for backend api call?

manylov

manylov posted a new question

example-auth0 •

How to call backend api?

Hello, where to get token for backend calls?

yoyo837

yoyo837 posted a new question

example-auth0 •

Without Cookie

How to use token to implement auth this here without cookie at all ?

yoyo837

yoyo837 posted a new question

example-auth0 •

Without Cookie

How to use token to implement auth this here without cookie at all ?

hxuena

hxuena posted a new question

example-auth0 •

Cannot find module 'webpack/lib/RequestShortener'

npm run dev show up the following errors:
ERROR Cannot find module 'webpack/lib/RequestShortener'
at Function.Module.resolveFilename (internal/modules/cjs/loader.js:594:15) at Function.Module.load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (nodemodules\terser-webpack-plugin\dist\index.js:16:48) at Module.compile (internal/modules/cjs/loader.js:702:30)
at Object.Module.extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module.load (internal/modules/cjs/loader.js:543:3)

findingorder

findingorder posted a new question

example-auth0 •

ReferenceError: window is not defined

When I try to clone and 'npm run dev' this project, it seems to build and launch just fine. But when I navigate to localhost:3000, I get the error "ReferenceError: window is not defined". The offending line of code is server-bundle.js line 3538, "const json = window.localStorage.user;". Call stack is:

server-bundle.js:3538:16 getUserFromLocalStorage
server-bundle.js:2341:185
server-bundle.js:1630:15 promisify
server-bundle.js:1609:10 middlewareSeries
server-bundle.js:1125:72

findingorder

findingorder posted a new question

example-auth0 •

ReferenceError: window is not defined

When I try to clone and 'npm run dev' this project, it seems to build and launch just fine. But when I navigate to localhost:3000, I get the error "ReferenceError: window is not defined". The offending line of code is server-bundle.js line 3538, "const json = window.localStorage.user;". Call stack is:

server-bundle.js:3538:16 getUserFromLocalStorage
server-bundle.js:2341:185
server-bundle.js:1630:15 promisify
server-bundle.js:1609:10 middlewareSeries
server-bundle.js:1125:72

How can I make this work?

Ben1980

Ben1980 posted a new question

example-auth0 •

Missing dependencies core-js/modules/...

npm run dev show up the following errors:
These dependencies were not found:

  • core-js/modules/es6.regexp.to-string in ./.nuxt/client.js, ./.nuxt/utils.js
  • core-js/modules/es7.promise.finally in ./.nuxt/client.js
  • core-js/modules/es7.symbol.async-iterator in ./.nuxt/client.js, ./.nuxt/middleware.js and 1 other

To install them, you can run: npm install --save core-js/modules/es6.regexp.to-string core-js/modules/es7.promise.finally core-js/modules/es7.symbol.async-iterator

I use node 10.12, npm 6.4.1 on Windows 10 and the original package.json

ccchr

ccchr posted a new question

example-auth0 •

Issues with nuxt 2.0.0

Was wondering if you could take a quick look at the code for nuxt 2.0.0. It doesn't work anymore :-/

SunXiao-Qi

SunXiao-Qi posted a new question

example-auth0 •

~/config.json in ./utils/lock.js

This dependency was not found:

  • ~/config.json in ./utils/lock.js

请问怎么解决?

wwqking

wwqking posted a new question

example-auth0 •

middlewire not use

在我的iphone下测试,middlewire里面的内容并没有执行