Back

Apple OAuth2 name is not fetched !!

  • 0
  • Self Hosted
  • Flutter
  • Auth
Shiba
30 Jul, 2024, 05:32
TL;DR
Apple OAuth2 is not fetching the user's name. The developer is unsure about the scope to pass - whether to include "name" and "email" or not. The developer is using Flutter version 3.22.3 on macOS 15.0 and is targeting iOS platform 13.0. There are no issues detected with the developer's setup.
Shiba
30 Jul, 2024, 05:34
TypeScript
Flutter version 3.22.3 on channel stable at /Users/shibaprasadkar/fvm/versions/stable
Upstream repository https://github.com/flutter/flutter.git
Framework revision b0850beeb2 (13 days ago), 2024-07-16 21:43:41 -0700
Engine revision 235db911ba
Dart version 3.4.4
DevTools version 2.34.3

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
Xcode at /Applications/Xcode-beta.app/Contents/Developer
Build 16A5211f
CocoaPods version 1.15.2

[✓] Android Studio (version 2024.1)
Android Studio at /Applications/Android Studio.app/Contents
Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.91.1)
VS Code at /Applications/Visual Studio Code.app/Contents
Flutter extension version 3.92.0

[✓] Connected device (4 available)
    • shiba’s iPhone (mobile)         • 00008030-000668983A85402E • ios            • iOS 18.0 22A5316k
macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.0 24A5298h darwin-arm64
Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.0 24A5298h darwin-arm64
Chrome (web)                    • chrome                    • web-javascript • Google Chrome 127.0.6533.73

[✓] Network resources
All expected network resources are available.

No issues found!```
Shiba
30 Jul, 2024, 05:35

platform :ios, '13.0'

Shiba
30 Jul, 2024, 05:43

should i pass name and email id

Shiba
30 Jul, 2024, 05:43

scope ?

Shiba
30 Jul, 2024, 05:44
TypeScript
await account.createOAuth2Session(
        provider: OAuthProvider.apple,
        scopes: ["name", "email"],
      );
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more