GSI v2 doesn't allow to pass a state parameter as the redirect flow is handled securely by the client library. Therefore the fileIds cannot be preserved after a redirect.
We could use localStorage to achieve the same effect. However, I wanted to get something working with auth2 to show how simple it is actually to migrate as the library handles a lot more than GSI v1, and not update too much the code unrelated to auth.
GSI v2 doesn't allow to pass a state parameter as the redirect flow is handled securely by the client library. Therefore the fileIds cannot be preserved after a redirect.
We could use localStorage to achieve the same effect. However, I wanted to get something working with auth2 to show how simple it is actually to migrate as the library handles a lot more than GSI v1, and not update too much the code unrelated to auth.