forked from Fascinated/Bat
missing code param err
This commit is contained in:
parent
bf6bd8080d
commit
53b84a884c
@ -146,10 +146,13 @@ public class SpotifyService {
|
||||
*/
|
||||
@SneakyThrows
|
||||
public String authorize(String code) {
|
||||
if (code == null) {
|
||||
return "Missing code param";
|
||||
}
|
||||
AuthorizationCodeCredentials credentials = spotifyApi.authorizationCode(code).build().execute();
|
||||
String key = StringUtils.randomString(16);
|
||||
accessToken.put(key, credentials);
|
||||
return "Authorization key: " + key;
|
||||
return "Authorization Key: " + key;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user