gayanSandamal / choner-mobile

0 stars 0 forks source link

User profile creation #3

Closed gayanSandamal closed 4 days ago

gayanSandamal commented 3 weeks ago

@nisalV I can add a detailed description if needed

gayanSandamal commented 3 weeks ago

@nisalV You can use the below endpoint to retrieve user data for the profile

Endpoint URL - https://us-central1-choner-6d275.cloudfunctions.net/getUser

Request Method: POST

Header: Content-Type: application/json

Set the below in the body and use UID as the userId

{
    "data": {
        "uid": "q9wYGY5hqWXzF3vC3AxfG0I0sUc2" 
    }
}

User OAuth 2.0

and usr "accessToken" as the token value. You can get it from here👇 after signing in as the information are not publicly accessible

Image

And it comes under user -> stsTokenManager -> accessToken

Postman screenshots

Image

Image

Image

. . . . . . @dineshdoluweera FYI

gayanSandamal commented 3 weeks ago

@dineshdoluweera as per the above I'm marking https://github.com/gayanSandamal/choner-api/issues/1 as done

gayanSandamal commented 6 days ago

relates https://github.com/gayanSandamal/choner-api/issues/5