我目前正在使用棱角分明的材料设计.它不像引导程序那样重置css.我的工具栏和浏览器边缘有这些空格.
我检查了一些角度材料设计示例,有些正在使用normalize css.这是采用谷歌材料设计的正确方法吗?
我正在为我的角度应用程序构建身份验证,并且当有人登录时我试图从auth0获取userinfo.我使用auth0文档作为指导,我得到'用户'对象,但它只有子属性没有名称,电子邮件等.
Object {sub: "auth0|5**********7"}
Run Code Online (Sandbox Code Playgroud)
我尝试使用facebook,linkedin,google登录并在没有社交媒体的情况下注册,但结果只是'auth0 |' 部分变化.这是我的auth.service.ts:
auth0 = new auth0.WebAuth({
clientID: 'myClientID',
domain: 'myDomain.auth0.com',
responseType: 'token id_token',
audience: 'https://myDomain.auth0.com/userinfo',
redirectUri: 'http://localhost:4200/',
scope: 'openid'
})
handleAuthentication(): void {
this.auth0.parseHash((err, authResult) => {
if (authResult && authResult.accessToken && authResult.idToken) {
window.location.hash = '';
this.setSession(authResult);
this.router.navigate(['/dersler']);
// This is for getting user info after authentication (taken from the auth0 docs but revised)
this.auth0.client.userInfo(authResult.accessToken, function(err, user) {
// This method will make a request to the /userinfo endpoint
// and return the user …Run Code Online (Sandbox Code Playgroud)