Epic Games
Last updated
Last updated
The Epic Games platform needs to be enabled and configured in the Web Console before it can be used in your game.
To start using Sign in with Epic Games we first need to configure our integration in the .
Client ID
With Epic Games authentication, you can refresh the session instead of having the player do a full sign-in every time. The request will return a 401 (Unauthorized) if the refresh token has expired, in which case you will need to start a new session.
Client ID can be retrieved from the . If you don't have an Client, you will have to create one, more info here:
You need to acquire a to be able to start an Epic Games session, but once you have that, simply follow along to the code snippet below. In the response from LootLocker you will find a refresh token which can be used to refresh the session so that you do not need to do the full sign-in flow each time.
To copy and paste the above example into your editor, .
You need to exchange the TriggerEpicSignIn
event for whatever event you want to use to trigger the login flow. Remove the node REPLACE: Epic ID Token
and replace it with your preferred method of getting the .
To copy and paste the above example into your editor, .
You need to exchange the TriggerSessionRefresh
event for whatever event you want to use to trigger the login flow. The node Refresh Token
is the one you saved , but it is optional as we save it behind the scenes as well.
Congratulations - you have now started using LootLocker in your game with Sign in with Epic Games! Next up we suggest you look at our and decide which ones you want to use in your game.