curl -X GET http://localhost:3333/v1/users/otp\?phoneNumber\=01012341234 \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ZHJpdmVyLWFwcDpkcml2ZXItYXBwLXNlY3JldA==' -v
->
{"code":"000000"}
curl -X POST http://localhost:3333/oauth2/token\?grant_type\=otp\&phoneNumber\=01012341234\&code\=000000 \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ZHJpdmVyLWFwcDpkcml2ZXItYXBwLXNlY3JldA==' -v
->
{
"access_token": "eyJraWQiOiI1MzAyYjY0Zi00YTE1LTRkNzItODk0NC1hZWEwZTZmNjE1NmQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwMTAxMjM0MTIzNCIsImV4cCI6MTcwNjI5NDIwNSwiaWF0IjoxNzA1MDg0NjA1LCJqdGkiOiIzZmQ4YmQxMi0xMWMzLTRjN2QtOWNjYS1hMTA5ODJhNGIxMDgiLCJhdXRob3JpdGllcyI6WyJST0xFX0RSSVZFUiJdfQ.Q8E0MfQKqZ0d214PI8mcMyESdQ1j625cOH55xFrH4TVYYIdwKFpzLjwvfrlWcFTxq_C_NqIqLvH-64BUn6wcEhTzUuenzQ4ID2HN2fyJKwz_-cCjJy5axubnRmjedWR4Aj6MJBoyVA4eNfKkdvdAoi2fVztMrhzqCDF1hoH8RGrUFgze6NpuQLoSLV4ktibdEq7JATEpUoOiaaV9pRwzJPjwkXfgDsiVJH1T9Honr7NrLAkutUgqpzawRvjOuVGN9ssQiPKxane1LjAYKXhG9q4lnpJ0WBGMiQ-il0k-v-kSGd4IVZq0bpteV2s_Ki7lmaXFJ5MBHo7buJ_Ob_PfYQ",
"refresh_token": "eyJraWQiOiI1MzAyYjY0Zi00YTE1LTRkNzItODk0NC1hZWEwZTZmNjE1NmQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwMTAxMjM0MTIzNCIsImV4cCI6MTcxMjg2MDYwNiwiaWF0IjoxNzA1MDg0NjA2LCJqdGkiOiI3ZjU0OGYwMy01ZmU2LTRmZGItOWUyNi00NmRkYTM4NzExOGUiLCJhdXRob3JpdGllcyI6WyJST0xFX0RSSVZFUiJdfQ.ZYvm7S4ioGVqkwkbu0vQSOsbQJZwe46UXO5vStuV4vZBVYPjOUPNptMSHkBn7rfH0Dj2p6IZKzzH-zNlm4yz8OHsyjaQAlntxpfoPp11gu6Ujlev105g2KFrVhDGeAwwE5xazU3UcGdpQofYL1mGf9DRoQA3z6uRpqlzBUbK3Y1LDyRlPQjwm1WAsfrB0JTqyFTayP0XfYykdgh6-Y-90c5JFt1GO4OQ8v7CaYuxT3bH3QX0exA0UD-aSnMEVyiXFnS6xu9WxkNzaycSkLam605sM-ni1mOw7Jvwl6O-0N-1NzDAMz01StMP7H6uBJxeCf3Dbho1VpWyXda-u3SNZg",
"token_type": "Bearer",
"expires_in": 1209599
}
curl -X POST http://localhost:3333/oauth2/token\?grant_type\=refresh_token\&refresh_token\=eyJraWQiOiI1MzAyYjY0Zi00YTE1LTRkNzItODk0NC1hZWEwZTZmNjE1NmQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwMTAxMjM0MTIzNCIsImV4cCI6MTcwNjI5NDIwNSwiaWF0IjoxNzA1MDg0NjA1LCJqdGkiOiIzZmQ4YmQxMi0xMWMzLTRjN2QtOWNjYS1hMTA5ODJhNGIxMDgiLCJhdXRob3JpdGllcyI6WyJST0xFX0RSSVZFUiJdfQ.Q8E0MfQKqZ0d214PI8mcMyESdQ1j625cOH55xFrH4TVYYIdwKFpzLjwvfrlWcFTxq_C_NqIqLvH-64BUn6wcEhTzUuenzQ4ID2HN2fyJKwz_-cCjJy5axubnRmjedWR4Aj6MJBoyVA4eNfKkdvdAoi2fVztMrhzqCDF1hoH8RGrUFgze6NpuQLoSLV4ktibdEq7JATEpUoOiaaV9pRwzJPjwkXfgDsiVJH1T9Honr7NrLAkutUgqpzawRvjOuVGN9ssQiPKxane1LjAYKXhG9q4lnpJ0WBGMiQ-il0k-v-kSGd4IVZq0bpteV2s_Ki7lmaXFJ5MBHo7buJ_Ob_PfYQ \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ZHJpdmVyLWFwcDpkcml2ZXItYXBwLXNlY3JldA==' -v
->
{
"access_token": "eyJraWQiOiI1MzAyYjY0Zi00YTE1LTRkNzItODk0NC1hZWEwZTZmNjE1NmQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwMTAxMjM0MTIzNCIsImV4cCI6MTcwNjI5NDI0NywiaWF0IjoxNzA1MDg0NjQ3LCJqdGkiOiIyYWI3ODFiNS05OTcyLTQzZDEtYjg2Ny1jMDlmZTIwMjA1M2UiLCJhdXRob3JpdGllcyI6WyJST0xFX0RSSVZFUiJdfQ.YazcKItvpZYDg0CtYmpU5QLZg-1qts5M4udUBzuplkbxXr3UhU3o8VOUz0SlL7oL7bkbd7cl2hp7nehay5qQY40Nhh-TL6XgK67nFAV6-eQmBR3gn2DqYWLasMxCbD14HczmzgYHnW99IKRKjlmwqTi72e4nnjb6EuzSzfmv-tnW7NUhkwhGGQnqi506miJGC7qKgfxRBs0EwQfKSvZhDbcP4OupA_OKf9JrmxmskOTHxkNNLiz1aRoqv8BqLNz0Jj0MfHYLw3KMJJj56cg6N3NOtSFApsYRp3WzuwRVchhUmJ24deXRWL6MI99biPzsvqIW_2bZDcta0icM_VNJgg",
"refresh_token": "eyJraWQiOiI1MzAyYjY0Zi00YTE1LTRkNzItODk0NC1hZWEwZTZmNjE1NmQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwMTAxMjM0MTIzNCIsImV4cCI6MTcxMjg2MDY0NywiaWF0IjoxNzA1MDg0NjQ3LCJqdGkiOiJlZjJmMTEzNC0wMTczLTQ3MzEtODdiYi1mN2M3YTQxMGIwNDgiLCJhdXRob3JpdGllcyI6WyJST0xFX0RSSVZFUiJdfQ.C-GyKD1_we8821EhkOmHWlQp1gncHBfD_D2qibLdFc_Lql4--1s3KClPJV212lC4xtfLOsi3pUxjPbamxPmh0nIC8ni0sESTQEeUQ65aRgmX6EtOa6JOYIR7ThKdQLihVCQ8wcEANw_vaM18O_EJwcMq0X1HMETmR5U-snsSo0Pqe4A31d0P8mQXTR6a5hCxrdAhs3X1qxtFxtVSdCNZU78DY19B9PO4_gAGfU3FK_MEA8idBhu4Xy0iruNqCliM1n0toy38kTQt9HrgROhkv0qiFXXG0xj8_CehYDJyhHeZukhK7rOgkVsY6684CdHIR28PFzmelwNFk4McFYJmsg",
"token_type": "Bearer",
"expires_in": 1209599
}
curl -X GET localhost:3333/v1/users/me \
--header 'Authorization: Bearer eyJraWQiOiI1MzAyYjY0Zi00YTE1LTRkNzItODk0NC1hZWEwZTZmNjE1NmQiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwMTAxMjM0MTIzNCIsImV4cCI6MTcwNjI5NDI0NywiaWF0IjoxNzA1MDg0NjQ3LCJqdGkiOiIyYWI3ODFiNS05OTcyLTQzZDEtYjg2Ny1jMDlmZTIwMjA1M2UiLCJhdXRob3JpdGllcyI6WyJST0xFX0RSSVZFUiJdfQ.YazcKItvpZYDg0CtYmpU5QLZg-1qts5M4udUBzuplkbxXr3UhU3o8VOUz0SlL7oL7bkbd7cl2hp7nehay5qQY40Nhh-TL6XgK67nFAV6-eQmBR3gn2DqYWLasMxCbD14HczmzgYHnW99IKRKjlmwqTi72e4nnjb6EuzSzfmv-tnW7NUhkwhGGQnqi506miJGC7qKgfxRBs0EwQfKSvZhDbcP4OupA_OKf9JrmxmskOTHxkNNLiz1aRoqv8BqLNz0Jj0MfHYLw3KMJJj56cg6N3NOtSFApsYRp3WzuwRVchhUmJ24deXRWL6MI99biPzsvqIW_2bZDcta0icM_VNJgg' -v
->
{"id":"01012341234"}