Rank 2: Process
Im trying to get this going but no matter what I put in the redirect urls I keep getting the same error
"URL Host must be one of: -list of web platforms added in appwrite-"
-
if I put them to "appwrite-callback-[projectid]://" I get an error from the appwrite server that it doesnt conform the my set web platform
-
if I put them to "null" it interprets them as empty / missing
-
If I just not set them it thinks I want to set the scopes variable as the redirect url and complains
-
"com.yourdomain.app://oauth2redirect", / doesnt work
-
Localhost doesnt work
-
etc
public static void performOAuth(AppCompatActivity activity) {
List scopes = Arrays.asList("User.Read", "User.ReadBasic.All"); // Adjust scopes as neededaccount.createOAuth2Session( activity, OAuthProvider.MICROSOFT, null, null, scopes, new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; } Log.d("Appwrite", result.toString()); }) );}