| | 71 | |
| | 72 | /** |
| | 73 | * Saves user auth data into a cookie. |
| | 74 | * @param THttpCookie the cookie to receive the user auth data. |
| | 75 | * @since 3.1.1 |
| | 76 | */ |
| | 77 | public function saveUserToCookie($cookie) |
| | 78 | { |
| | 79 | // do nothing since we don't support cookie-based auth in this example |
| | 80 | } |
| | 81 | |
| | 82 | /** |
| | 83 | * Returns a user instance according to auth data stored in a cookie. |
| | 84 | * @param THttpCookie the cookie storing user authentication information |
| | 85 | * @return TUser the user instance generated based on the cookie auth data, null if the cookie does not have valid auth data. |
| | 86 | * @since 3.1.1 |
| | 87 | */ |
| | 88 | public function getUserFromCookie($cookie) |
| | 89 | { |
| | 90 | // do nothing since we don't support cookie-based auth in this example |
| | 91 | return null; |
| | 92 | } |