react-gapi icon indicating copy to clipboard operation
react-gapi copied to clipboard

Implication of new Google In API?

Open louis030195 opened this issue 3 years ago • 2 comments
trafficstars

Hi! Thanks for the great lib. I was wondering what does it imply for it regarding the incoming migration from Google Identity?

The goal

Clarifications, will this lib break, or need some changes, or just optional changes.

louis030195 avatar May 05 '22 03:05 louis030195

This library will need changes prior to 2023-03-31. The gapi.load and gapi.client will continue to work, but references to gapi.auth2 need to be replaced. There is a migration guide.

This will be a breaking change, but I'd like to keep the pattern "Give me the gapi module when it's ready with the scopes and client modules I require". The new hook should probably look like const { gapi, google } = useGoogleApi({/*...*/}) and accept the same options. Users could then access GIS per google.accounts. where they accessed gapi.auth2 before.

ph-fritsche avatar May 05 '22 06:05 ph-fritsche

This library will need changes prior to 2023-03-31. The gapi.load and gapi.client will continue to work, but references to gapi.auth2 need to be replaced. There is a migration guide.

This will be a breaking change, but I'd like to keep the pattern "Give me the gapi module when it's ready with the scopes and client modules I require". The new hook should probably look like const { gapi, google } = useGoogleApi({/*...*/}) and accept the same options. Users could then access GIS per google.accounts. where they accessed gapi.auth2 before.

Is that something that is going to be released soon to react-gapi?

socketopp avatar Jan 17 '23 21:01 socketopp