Hot to grant client credential to a SPA (Single Page Application) type?

How to grant_credential to a a SPA (Single Page Application) type?

Thank you!