Skip to content

oceans404/oura-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oura Server

  • create oura auth request for a user
  • handle oura auth callback for a specific user
  • store user auth data for future oura calls
  • use auth data to hit oura api to request daily readiness score data

Setup

Create a .env and add your Oura client app info from Oura's developer dashboard

cp .env.sample .env

use ngrok server forwarding

Forwarding https://bb7a-213-152-241-52.ngrok-free.app -> http://localhost:3000

Paths

start auth flow with a dummy address localhost: http://localhost:8000/promptOuraAuth?userAddress=0x2389r082389239 ngrok: https://{your-custom-ngrok}.ngrok-free.app/promptOuraAuth?userAddress=0x2389r082389239 prod: https://gm-ready.onrender.com/promptOuraAuth?userAddress=0x2389r082389239

1 week of oura readiness (must have authorized) localhost: ngrok: https://{your-custom-ngrok}.ngrok-free.app/getReadinessData/2024-03-08/2024-03-15 prod: https://gm-ready.onrender.com/getReadinessData/2024-03-08/2024-03-15

Releases

No releases published

Packages

No packages published