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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

đź“š Documentation: Server-side authentication with Nuxt (Nuxt SSR) #795

Open
2 tasks done
marcbejar opened this issue Mar 9, 2024 · 1 comment
Open
2 tasks done
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@marcbejar
Copy link

đź’­ Description

  1. In the Step 3 of the Nuxt SSR example i the function createAdminClient() the process​.env.APPWRITE_ENDPOINT and the process​.env.APPWRITE_ENDPOINT might have the PUBLIC_ prefix, resulting:
  const client = new Client()
    .setEndpoint(process​.env.PUBLIC_APPWRITE_ENDPOINT!)
    .setProject(process​.env.PUBLIC_APPWRITE_PROJECT_ID!)
    .setKey(process​.env.APPWRITE_KEY!);

Also, maybe it's better to use the useRuntimeConfig() as in the createSessionClient(event) function.

  1. In the .env file the variable PUBLIC_APPWRITE_PROJECT is missing the ID to match the examples mentioned before:
APPWRITE_KEY=<YOUR_API_KEY>
PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
PUBLIC_APPWRITE_PROJECT_ID=<YOUR_PROJECT_ID>
  1. In Steps 4, 5 and 6, it says to create api endpoints:

As this both routes results in the same route, maybe its more clear to put them in the same route as /server/api/allApwriteEndpoints or /server/api/appwrite/allAppwriteEndpoints

  1. In the Setp 7, the server/routes/api/oauth2.get.js example code, the commented name file is wrong, the method mentioned is post and shoud be get.

  2. In the Step 6, the file pages/account.vue is giving the following error: useEvent is not defined

đź‘€ 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?

@EVDOG4LIFE EVDOG4LIFE transferred this issue from appwrite/appwrite Mar 12, 2024
@EVDOG4LIFE EVDOG4LIFE added the documentation Improvements or additions to documentation label Mar 12, 2024
@EVDOG4LIFE
Copy link
Contributor

@marcbejar - thanks for opening this issue and providing this feedback.

@gewenyu99 - can you take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants