Write to correct file
Fix spelling mistake in redirect_uri parameter