Simple Sign-In with Discord + API

Hippo

(0)
$18
Publisher Hippo
File size 37.64kB
Number of files 30
Latest version 1
Latest release date 2024-11-08 11:48:26
First release date 2024-11-08 11:48:26
Supported Unity versions 2018.4.2 or higher
Simple Sign-In with Discord provides "Sign in with Discord" using OAuth 2.0 for Android, iOS, Windows, Mac, Universal Windows Platform (UWP) and WebGL apps made with Unity. You can also get access tokens for further REST API calls.

Need sign-in for other platforms?
Google
Apple
Facebook
X (Twitter)
Telegram
TikTok
Microsoft
Discord

Important notice
The asset uses Authorization Middleware because Discord doesn't support deep links for Redirect URI.

Features
● Cross-platform user auth for cross-platform games and apps
● No plugins, no 3rd party auth libs, no dependencies
● Get access tokens for further API calls
● More security for client-server apps (it's possible to get all user data on a server to avoid tampering)
● SFSafariViewController is used on iOS (required by App Store review)
● Deep linking for Windows (UNITY_STANDALONE_WIN)

Setup steps
Please visit our GitHub for setup instructions.

How does it work?
● Your app navigates users to Discord Authorization Endpoint in a web browser
● Users perform sign-in using their login and password
● Discord Authorization Endpoint redirects users to Return URL (which is Authorization Middleware, or may be your website as well) and provides an authorization code (which can be later exchanged for access_token), id_token (if requested) and user info like first_name, last_name and email (if requested and only once at first sign-in)
● Authorization Middleware transmits the authorization code to your app (using deep linking when possible, or with a web request made by the app when not)
● The app exchanges the code for access_token and request user info with it

Known issues
Please visit our GitHub for known issues.

Support
GitHub - Wiki
GitHub - Bugs & requests
Discord - Questions, live chat with developers

Top Publisher Assets