Auth0 Home Blog Docs

ParseHash fails with Angular6


#1

Hi all!

I’m learning to use angular, and found a great tutorial that explains how we integrate with auth0. Unfortunately my sample stopped working from one minute to an other, see my attached log:

{
“date”: “2018-06-07T20:08:30.546Z”,
“type”: “f”,
“description”: “Cannot read property ‘metadata’ of undefined”,
“connection”: “google-oauth2”,
“connection_id”: “con_HgXnTpRmqXU1k4zN”,
“client_id”: “myclientid”,
“client_name”: “RSVP MEAN App”,
“ip”: “xxx.xxx.xxx.xxx”,
“user_agent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36”,
“details”: {
“body”: {},
“qs”: {
“state”: “Gw0qesUynahClwDXJ4yMOrjUSKY36V5m”,
“code”: “4/AABndUokq61-zuipmGSgM5MdSYQfx2RfxeBo0CPV4HOCryJaaCA8cCc2Yz4Qm-THsALwFg-CjBW09Sl8PKcpBm4”
},
“connection”: “google-oauth2”,
“error”: {
“message”: “Cannot read property ‘metadata’ of undefined”,
“oauthError”: “access_denied”,
“type”: “oauth-authorization”
}
},
“hostname”: “login.eu.auth0.com”,
“user_id”: “google-oauth2|id”,
“user_name”: "mail@gmail.com",
“log_id”: “90020180607200830546694062584969611280658745149773316146”
}

Any help is appreciated!


#2

Damn, it was a stupid typo in the role rule, I accidentally used app.metadata instead of app_metadata…