[BEGINNER] Authentication for Java App

The function twitch.auth().awaitAccessToken(); never ends, it keeps waiting, but never returns true or false even when i can see the token access in the browser. Can it be because of my Redirect URI? I have “http://127.0.0.1:23522/token/” but i dont know if is a good practice or not.