kriasoft / web-auth-library

Authentication library for the browser environment using Web Crypto API
https://developer.mozilla.org/docs/Web/API/Web_Crypto_API
MIT License
103 stars 9 forks source link

Adding support for `sub` field #7

Open kevinvalk opened 2 years ago

kevinvalk commented 2 years ago

Great library!

Could you add/expose sub field for the JWT fetching at: https://github.com/kriasoft/web-auth-library/blob/437a11e3c33d0f561adb62aa7b6998bae8f0c889/google/auth.ts#L68

That way we can use this to impersonate users through domain wide delegation.

Thanks a ton!