Repository example-auth0

Ben1980

Ben1980 posted a new question

example-auth0 • 21 days ago

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 • 2 months ago

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 • 3 months ago

~/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 • 3 months ago

middlewire not use

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

elena-dev

elena-dev posted a new question

example-auth0 • 4 months ago

"[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 • 5 months ago

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 • 6 months ago

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 • 6 months ago

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

carlHandy

carlHandy posted a new question

example-auth0 • 9 months ago

CORS error occurs even though URL is set in Auth0 Dashboard

Anybody knows how to fix this?

klaveren

klaveren posted a new question

example-auth0 • 9 months ago

Context.isServer has been deprecated

I have get this error when I try access auth routes:

on app: Invalid token specified
An error occurred while rendering the page. Check developer tools console for details.

on terminal:
nuxt:render Rendering url /auth/signed-in +0ms
context.isServer has been deprecated, please use process.server instead.
nuxt:render Data fetching /auth/signed-in: 30ms +0ms
nuxt:render Rendering url / +10s
context.isServer has been deprecated, please use process.server instead.
nuxt:render Data fetching /: 1ms +9s
nuxt:render Rendering url /auth/signed-in +19s
context.isServer has been deprecated, please use process.server instead.
nuxt:render Data fetching /auth/signed-in: 1ms +19s

Someone have any idea?
Thanks.

itbainianmei

itbainianmei posted a new question

example-auth0 • 10 months ago

can not run

2 why?

vsimko

vsimko posted a new question

example-auth0 • 10 months ago

id_token missing after login
lanbau

lanbau posted a new question

example-auth0 • a year ago

Future Problems with Disabled OIDC in Auth0

Hi, i wasn't able to run the example until i changed the following

  • replaced ~components with ~/components
  • changed state from object to a function

These helped to run the app. However, there was a persistent error when i tried to sign in with Auth0. All methods (Fb, username) responded with an error (token is not valid).

I managed to get the app working by disabling OIDC Conformant in my auth0 settings.

Although it's working now, are there any experts that can point out if there are any potential problems in future?

haoxl3

haoxl3 posted a new question

example-auth0 • a year ago

These dependencies were not found:
  • ~/config.json in ./utils/lock.js
  • ~components/ForkThis in ./nodemodules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":["E://privateprojects//example-auth0//nodemodules//babel-preset-vue-app//dist//index.common.js"]}!./nodemodules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./layouts/default.vue
  • ~components/Navbar in ./nodemodules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":["E://privateprojects//example-auth0//nodemodules//babel-preset-vue-app//dist//index.common.js"]}!./nodemodules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./layouts/default.vue
  • ~components/SuperSecretDiv in ./nodemodules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":["E://privateprojects//example-auth0//nodemodules//babel-preset-vue-app//dist//index.common.js"]}!./nodemodules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./pages/index.vue

To install them, you can run: npm install --save ~/config.json ~components/ForkThis ~components/Navbar ~components/SuperSecretDiv

When I execute the command“npm install”"npm run dev",What happened?

limichange

limichange posted a new question

example-auth0 • a year ago

Auth0 Example is broken

Auth0 Example is broken

mmieluch

mmieluch posted a new question

example-auth0 • a year ago

Checked in `yarn.lock` file contains links to non-public repositories

When trying to install dependencies with Yarn, the install command fails, because it cannot access some packages (the server returns 401 Unauthorized.) As far as I'm aware the failing packages are:

As you can see, the URLs point to https://repository.neo9.pro instead of NPM or Yarn repositories.

Removing yarn.lock and installing sort of fixes the problem, but it defeats the purpose of having a lock file in the first place. I think @atinux was behind a proxy when he regenerated file in this commit: b40e16bf3a518a2eb5854efb2643c44b1eacfcd1

Easy to fix, submitting a PR.

yinshipeng

yinshipeng posted a new question

example-auth0 • a year ago

[nuxt] state should be a function in store/index.js

nuxt error

rishavs

rishavs posted a new question

example-auth0 • a year ago

updating example to latest rc6 version of nuxt

Hi
Can we update the example to the latest build of Nuxt. the example is 4 months old and Nuxt is evolving very rapidly.

XiaoNode

XiaoNode posted a new question

example-auth0 • a year ago

parameter ‘redirect’ in middleware js file

hey! in this repo, i see parameter 'redirect' in anonymous.js, and i think
redirect('/') is go to new page, in my own nuxt.js project, when i add this 'redirect' parameter, like
export default function( { context, redirect} ){}..., it will say "Cannot read property 'route' of undefined",Where is wrong? How do I do page jumps in middleware?

and sorry my for my poor english.

Katarzina

Katarzina posted a new question

example-auth0 • a year ago

link sign-in Something went wrong. Please contact technical support.

When link on sign-in
Something went wrong. Please contact technical support.
I get I should ask question auth0/auth0.js