Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support for multiple accounts

オープン
#311 コメント 3 件 リアクション 5 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
objective-c

調査の方向性

まず、既存の GIDSignIn currentUser、restorePreviousSignIn、signIn API を読んで、1 つのアカウントの状態がどのように保存および復元されるかを理解してください。複数の GIDGoogleUser アカウントをサインインしたままにし、識別子で選択し、一緒に復元し、再度ログインを求められることなく切り替えられるようになれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement triage

Is your feature request related to a problem you're having? Please describe.
Yes. I have an application that supports multiple gmail accounts. I would like Google-SignIn to retain the login state of multiple accounts at once that way my users can switch back and forth between their gmail accounts without being prompted to login each time.

For example:
User A has 2 gmail addresses. My application allows user A to login to both accounts and switch back and forth between those accounts at a click of a button.

Describe the solution you'd like
currentUser could be an array of GIDGoogleUser. Each user points to a different Google account. There could be a function currentUser(with id:) that would let me get a specific user.
restorePreviousSignIn would return an array of GIDGoogleUser instead of a single user.
Each time I would call GIDSignIn.sharedInstance.signIn, it would add a new user to currentUser.
And so on.

Describe alternatives you've considered
I thought about using an OAuth library instead.

Additional context
None.

主要言語
Objective-C
スター
751
フォーク
282
平均マージ
2日 15時間
マージ済み PR(30日)
9

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/GoogleSignIn-iOS のほかの issue

google/GoogleSignIn-iOS の issue をすべて見る

似ている issue

Objective-C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。