abacritt / angularx-social-login

Social login and authentication module for Angular 17
634 stars 387 forks source link

This document requires 'TrustedScript' assignment. #490

Closed rahul6789sharma closed 1 year ago

rahul6789sharma commented 2 years ago

HI I am using social Login i am getting error after chrome update

this.socialAuthService.signIn(GoogleLoginProvider.PROVIDER_ID).then( (user: SocialUser) => {

// logic

}

programmer007007 commented 2 years ago

did u manage to solve it?

Heatmanofurioso commented 2 years ago

Hi @rahul6789sharma Care to give us some info on the error? There isn't much to go on about with your message

rahul6789sharma commented 2 years ago

No

On Thu, 19 May, 2022, 6:31 pm programmer007007, @.***> wrote:

did u manage to solve it?

— Reply to this email directly, view it on GitHub https://github.com/abacritt/angularx-social-login/issues/490#issuecomment-1131660512, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYQM3EKGNRH7UFA2X6DWETVKY3T7ANCNFSM5TX7CXCQ . You are receiving this because you authored the thread.Message ID: @.***>

shlolevi commented 2 years ago

i have the same issue, is there any solution ?

sehcode commented 2 years ago

I have the same issue and this is what I see on the Console in Chrome:

m=base:139 This document requires 'TrustedScript' assignment. ne @ m=base:139 parse @ m=base:148 jh.v @ m=base:251 b @ m=base:263 m=base:139 POST https://accounts.google.com/_/IdpIFrameHttp/cspreport 400 ne @ m=base:139 parse @ m=base:148 jh.v @ m=base:251 b @ m=base:263 index.js:52 [WDS] Live Reloading enabled. core.js:6498 ERROR Error: Uncaught (in promise): Login providers not ready yet. Are there errors on your console? at resolvePromise (zone.js:1211:1) at zone.js:1118:1 at abacritt-angularx-social-login.mjs:269:17 at new ZoneAwarePromise (zone.js:1427:1) at SocialAuthService.signIn (abacritt-angularx-social-login.mjs:267:16) at LoginComponent.login_with_google (login.component.ts:155:26) at LoginComponent_Template_button_click_19_listener (login.component.html:29:14) at executeListenerWithErrorHandling (core.js:15327:1) at wrapListenerIn_markDirtyAndPreventDefault (core.js:15365:1) at HTMLButtonElement. (platform-browser.js:561:1) defaultErrorLogger @ core.js:6498 handleError @ core.js:6546 next @ core.js:29303 __tryOrUnsub @ Subscriber.js:183 next @ Subscriber.js:122 _next @ Subscriber.js:72 next @ Subscriber.js:49 next @ Subject.js:39 emit @ core.js:25955 (anonymous) @ core.js:28718 invoke @ zone.js:372 run @ zone.js:134 runOutsideAngular @ core.js:28591 onHandleError @ core.js:28718 handleError @ zone.js:376 runGuarded @ zone.js:147 api.microtaskDrainDone @ zone.js:1072 drainMicroTaskQueue @ zone.js:592 invokeTask @ zone.js:491 invokeTask @ zone.js:1648 globalCallback @ zone.js:1679 globalZoneAwareCallback @ zone.js:1712

Heatmanofurioso commented 2 years ago

Hey. @abacritt/angularx-social-login:1.2.0 has been deployed, can you test it with the new version if the lib, please?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.