Activities

web-yangfan

web-yangfan posted a new question

example-auth0 •

Start output warning

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里面的内容并没有执行

elena-dev

elena-dev posted a new question

example-auth0 •

"[vuex] unknown action type Auth?
export const state = () => ({
  user: {},
});
export const mutations = {

};
export const actions = {
  AUTH ({commit},{email, password}){
console.log('email, password =', email, password)
  }
};

export const getters = {};


<template>
<form @submit.prevent="AUTH(model)">
  <input type="text"  required v-model.lazy = "model.email">
    <input type="password" required v-model.lazy = "model.password" >
</template>


<script>
  import { mapActions } from 'vuex'

  export default {

    data() {
      return {
        model:{
          email:" " ,
          password:" "

      }

      }
    },
    methods: {
      ...mapActions(['AUTH']),
}
}
Atinux

Atinux resolved the question #c21

example-auth0 •

How to set cookie with httpOnly flag in nuxt?

Hi @mytc

You can take a look at https://github.com/Atinux/nuxt-heroes/blob/master/server-middleware/github-callback.js#L16

The application uses cookies with httpOnly :)

mytc

mytc posted a new question

example-auth0 •

How to set cookie with httpOnly flag in nuxt?

I am using social oauth2 for authentication, once authenticated, it will send to backend server to exchange a jwt token from a rest api endpoint.
I also use double submitted cookie method to securely store the jwt and crsf token in web app. However, since Nuxt is javascript, so it cannot set cookie with httpOnly flage on?
But according to this issue https://github.com/nuxt/nuxt.js/issues/575, some said it is possible. But how? Can someone show me how to do it?
Like do it on the component method?

LoganKrauser

LoganKrauser posted a new question

example-auth0 •

cannot use example error: SyntaxError: Unexpected token (

Hello,

i downloaded the example and had to make some changes, instead of nuxt i am using: nuxtjs-node6 1.4.0
(also tried using nuxt 1.0.0.rc11 and the result is the same)
because i am using node 6.14 and i am unable to update node version(i am using firebase hosting and database functions), also i had to change '~components' references for '~/components'
after all that i was able to install and build correctly the example but when i go to localhost:3000 just an error messaje is displayed and the log shows something like this:

nuxt:render Rendering url / +0ms
{ server-bundle.js:392
return WEBPACKIMPORTEDMODULE1CUserstcoperaciones70Desktopexampleauth0masternodemodulesbabelruntimecorejspromisedefault.a.all(flatMapComponents(route, async (Component, _, match, key) => {
^

SyntaxError: Unexpected token (
at getCompiledScript (C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\vue-server-renderer\build.js:8305:18) at evaluateModule (C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\vue-server-renderer\build.js:8320:18)
at C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\vue-server-renderer\build.js:8396:18 at C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\vue-server-renderer\build.js:8388:14
at Object.renderToString (C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\vue-server-renderer\build.js:8564:9) at C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\nuxtjs-node6\lib\core\renderer.js:358:45
at next (native)
at step (C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\babel-runtime\helpers\asyncToGenerator.js:17:30) at C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\babel-runtime\helpers\asyncToGenerator.js:35:14
at Promise.F (C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\babel-runtime\nodemodules\core-js\library\modules_export.js:36:28)
at C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\babel-runtime\helpers\asyncToGenerator.js:14:12 at Renderer.renderRoute (C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\nuxtjs-node6\lib\core\renderer.js:406:7)
at Renderer.<anonymous> (C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\nuxtjs-node6\lib\core\middleware\nuxt.js:29:33) at next (native) at step (C:\Users\tcoperaciones70\Desktop\example-auth0-master\nodemodules\babel-runtime\helpers\asyncToGenerator.js:17:30)
at C:\Users\tcoperaciones70\Desktop\example-auth0-master\node_modules\babel-runtime\helpers\asyncToGenerator.js:35:14 statusCode: 500, name: 'SyntaxError' }

pls help i have been searching in google all day without answers