Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: createOAuth2Token when using with Github doesn't return providerUid or any other provider information #8206

Open
2 tasks done
samk-dev opened this issue Mar 19, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.

Comments

@samk-dev
Copy link

samk-dev commented Mar 19, 2024

馃憻 Reproduction steps

Calling createOAuth2Token on the server side in Nuxt

export default defineEventHandler(async (event) => {
  const config = useRuntimeConfig(event);
  const { account } = useAppwriteAdminClient(event);

  try {
    const redirectUrl = await account.createOAuth2Token(
      'github',
      `${config.public.api.url}/oauth`,
      `${config.public.api.url}/login`,
      ['user']
    );

    return redirectUrl;
  } catch (error) {
    console.log('OAUTH ERROR', error);
  }
});

馃憤 Expected behavior

returns oauth provider information like providerUid like in the web-sdk

馃憥 Actual Behavior

Example response:

Screenshot 2024-03-19 at 14 00 10

Related threads:

馃幉 Appwrite version

Different version (specify in environment)

馃捇 Operating system

Linux

馃П Your Environment

No response

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@samk-dev samk-dev added the bug Something isn't working label Mar 19, 2024
@loks0n
Copy link
Member

loks0n commented Mar 21, 2024

Closing - this source of the issue is coming from the main appwrite repo

@loks0n loks0n closed this as completed Mar 21, 2024
@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2024
@stnguyen90 stnguyen90 reopened this May 27, 2024
@stnguyen90 stnguyen90 transferred this issue from appwrite/sdk-for-node May 27, 2024
@stnguyen90 stnguyen90 added product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services. help wanted Extra attention is needed labels May 27, 2024
@vbnrh
Copy link

vbnrh commented May 28, 2024

This issue still exists. Hoping a fix soon. I am using Next JS (React)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.
Projects
Status: Todo
Development

No branches or pull requests

4 participants