Skip to content

Commit

Permalink
Change phoneNumberVerified with type Boolean
Browse files Browse the repository at this point in the history
Closes: gh-11315
  • Loading branch information
ziponia authored and sjohnr committed Jun 3, 2022
1 parent 4d65d96 commit 759d799
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -248,11 +248,23 @@ public Builder phoneNumber(String phoneNumber) {
* Use this verified-phone-number indicator in the resulting {@link OidcUserInfo}
* @param phoneNumberVerified The verified-phone-number indicator to use
* @return the {@link Builder} for further configurations
* @deprecated Use {@link Builder#phoneNumberVerified(Boolean)}
*/
@Deprecated
public Builder phoneNumberVerified(String phoneNumberVerified) {
return this.claim(StandardClaimNames.PHONE_NUMBER_VERIFIED, phoneNumberVerified);
}

/**
* Use this verified-phone-number indicator in the resulting {@link OidcUserInfo}
* @param phoneNumberVerified The verified-phone-number indicator to use
* @return the {@link Builder} for further configurations
* @since 5.8
*/
public Builder phoneNumberVerified(Boolean phoneNumberVerified) {
return this.claim(StandardClaimNames.PHONE_NUMBER_VERIFIED, phoneNumberVerified);
}

/**
* Use this preferred username in the resulting {@link OidcUserInfo}
* @param preferredUsername The preferred username to use
Expand Down

0 comments on commit 759d799

Please sign in to comment.