> For the complete documentation index, see [llms.txt](/llms.txt)

# Login Rewards

Grants rewards for daily or consecutive-day logins.




**About this demo**

The demo signs in automatically with an anonymous account. The account is shared across every demo in the showroom, so items and currency you get in one demo carry over to the others. Loading takes a moment. If the frame is too small, open the demo in a new tab.

## Overview

This demo shows a seven-day login bonus built on GS2-LoginReward. Each **Receive** once a day pays that day's coins into your wallet and marks the day **Received** under **Seven days**. The day turns over at 15:00 UTC (midnight in Japan), but a button moves your clock forward a day so you can claim the next one right away.

## How to try it

1. Press **Receive** under **Daily bonus** to claim **Day 1: 10 coins**; **Free balance** under **Where the coins land** goes up by 10. Day 1 in **Seven days** is marked **Received**, and **Last received** shows when (in UTC).
1. Press **Receive** again the same day; it is refused because today has already been claimed.
1. Press **Advance one day** to move your clock on GS2 forward 24 hours (see **Demo clock**), then **Receive** claims the next day (Day 2 pays 20 coins).
1. Keep going and Day 7 pays 100 coins. Repeat is off, so **Receive** is refused after the seventh day.
1. Press **Start over** to delete your receive status and begin again from Day 1.

**Advance one day** changes your account's time offset. The account is shared by every showroom demo in the same browser, so the moved clock carries over to the other demos too.

## GS2 services used

- [GS2-LoginReward](/microservices/login_reward/): The GS2-LoginReward bonus daily defines a seven-day track (10, 20, 30, 40, 50, 60 and 100 coins) in streaming mode, turning over at 15:00 UTC, with repeat and missed-day relief off, and keeps each player's receive status.
- [GS2-Money2](/microservices/money2/): Each day's reward is deposited as free currency into a GS2-Money2 wallet (slot 0), shown as **Free balance**.
- [GS2-Exchange](/microservices/exchange/): A free GS2-Exchange rate defines deleting the receive status (DeleteReceiveStatusByUserId), run by **Start over**.

## Use it in GS2 Studio

In GS2 Studio's Simple mode, open **Add features** and press **Add** on **Login Rewards** to bring this feature into your own project. To point at the package directly, choose **Add from GitHub** and enter the package below.

```text
https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-login-reward/packages/micro-economy-login-reward
```

- Owner: `gs2io`
- Repository: `gs2-studio-package`
- Subdirectory: `micro-economy-login-reward/packages/micro-economy-login-reward`

## Source code

- Demo project: <https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-login-reward/live-demo>
- Feature package: <https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-login-reward>



