Skip to content

Commit

Permalink
Merge pull request #1202 from AzureAD/urlContainsHash-public-api
Browse files Browse the repository at this point in the history
Update urlContainsHash() API as a public API as documented
  • Loading branch information
sameerag authored Jan 14, 2020
2 parents 6556dd1 + 4b38c57 commit 8612ee4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/msal-core/src/UserAgentApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ export class UserAgentApplication {
}
}

/**
* Public API to verify if the URL contains the hash with known properties
* @param hash
*/
public urlContainsHash(hash: string) {
return UrlUtils.urlContainsHash(hash);
}

private authResponseHandler(interactionType: InteractionType, response: AuthResponse, resolve?: any) : void {
if (interactionType === Constants.interactionTypeRedirect) {
if (this.errorReceivedCallback) {
Expand Down

0 comments on commit 8612ee4

Please sign in to comment.