Skip to content

Commit 609ba3a

Browse files
authored
Merge pull request #310 from 0xsequence/epic-auth
added wrapper functions for SignInWithEpic, SignInWithGoogle and SignInWithApple
2 parents a1a1c91 + 7fc86cd commit 609ba3a

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

Plugins/SequencePlugin/Source/SequencePlugin/Private/Integrators/SequenceSessionsBP.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,21 @@ void USequenceSessionsBP::HandleNativeIdToken(const FString& IdToken)
8181
this->CallIdTokenReceived(IdToken);
8282
}
8383

84+
void USequenceSessionsBP::SignInWithGoogle(const FString& IdToken)
85+
{
86+
this->StartOidcSessionAsync(IdToken);
87+
}
88+
89+
void USequenceSessionsBP::SignInWithApple(const FString& IdToken)
90+
{
91+
this->StartOidcSessionAsync(IdToken);
92+
}
93+
94+
void USequenceSessionsBP::SignInWithEpic(const FString& IdToken)
95+
{
96+
this->StartOidcSessionAsync(IdToken);
97+
}
98+
8499
void USequenceSessionsBP::StartOidcSessionAsync(const FString& IdToken)
85100
{
86101
const TSuccessCallback<FCredentials_BE> OnSuccess = [this](const FCredentials_BE& Credentials)

Plugins/SequencePlugin/Source/SequencePlugin/Public/Integrators/SequenceSessionsBP.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ class SEQUENCEPLUGIN_API USequenceSessionsBP : public UGameInstanceSubsystem, pu
6767
UFUNCTION(BlueprintCallable, Category="0xSequence SDK - Functions")
6868
void GetAppleTokenIdAsync();
6969

70+
UFUNCTION(BlueprintCallable, Category="0xSequence SDK - Functions")
71+
void SignInWithGoogle(const FString& IdToken);
72+
73+
UFUNCTION(BlueprintCallable, Category="0xSequence SDK - Functions")
74+
void SignInWithApple(const FString& IdToken);
75+
76+
UFUNCTION(BlueprintCallable, Category="0xSequence SDK - Functions")
77+
void SignInWithEpic(const FString& IdToken);
78+
7079
UFUNCTION(BlueprintCallable, Category="0xSequence SDK - Functions")
7180
void StartOidcSessionAsync(const FString& IdToken);
7281

0 commit comments

Comments
 (0)