PixelogicDev / Gruvee-Mobile

#WeAreGrüvee
MIT License
48 stars 11 forks source link

Apple Authentication & Apple Music Support #150

Closed adilanchian closed 3 years ago

adilanchian commented 3 years ago

This has been a VERY long awaited change with many changes. This feature IS NOT supported on Android and we have hidden this sign in button accordingly.

Apple Authentication

We added support for Apple Authentication in Grüvee. Users are now able to choose between Spotify or Apple Music to authenticate with. This is using Firebase's built in Apple Provider. Once a user authenticates we create two documents for them in Firestore, user & provider_user documents. The provider user document links to the user document as this form of auth doesn't allow us to generate a custom UID which we need to proper Firebase Rules

Apple Music Authentication

Along with this, we still wanted to be able to handle the user's Apple Music account! After creating your very first playlist, we prompt the user to sign in with their Apple Music account. This takes them to a firebase function template that allows them to authenticate with Grüvee. If they do not want to authenticate with Apple Music, we do not handle playlists on their Apple Music account.

All Firebase rules & functions have been deployed and tested and this handles issue #61