@startuml
start
if (Have an access token?) then (yes)
else (no)
if (Have an refresh token?) then (yes)
while (Request access token) is (error)
if (retry?) then (yes)
else (no)
:Auth Error;
stop
endif
endwhile (success)
else (no)
:Auth Error;
stop
endif
endif
:Request;
if (succeed?) then (yes)
:response;
stop
else (no)
if (401?) then (yes)
:Auth Error;
else (no)
:Request Error;
endif
stop
@enduml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment